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=5 x=4 x=0 Error x=1 x=5 x=4 x=0 Error x=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming The type of the controlling expression of a switch statement cannot be of the type ........ int short char float long int short char float long ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} 0 0 0 garbage values 1 1 1 Error 0 0 0 garbage values 1 1 1 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error None of these. will print garbage value will print Hello World Compilation Error None of these. will print garbage value will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 2 0.5 0.25 1 9 2 0.5 0.25 1 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program None of these Must contain at least one function. Need not contain any function. Needs input data. None of these Must contain at least one function. Need not contain any function. Needs input data. ANSWER DOWNLOAD EXAMIANS APP