C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=0 x=4 Error x=5 x=1 x=0 x=4 Error x=5 x=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. A run time error will be generated. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. A run time error will be generated. Prints the value of 0 one time only. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? Program do no return a value. 2 -1 1 Program do no return a value. 2 -1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char not; not = !2; printf("%d", not);} 0 2 None of These Garbage Value 0 2 None of These Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of macros Acts before compilation All of these Takes care of conditional compilation Takes care of include files Takes care of macros Acts before compilation All of these Takes care of conditional compilation Takes care of include files ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); Infinite loop 0 Syntax error 0123456789 10 Infinite loop 0 Syntax error 0123456789 10 ANSWER DOWNLOAD EXAMIANS APP