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=1 x=5 x=0 x=4 Error x=1 x=5 x=0 x=4 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 7 6 24 It will not compile because not enough initializers are given 12 7 6 24 It will not compile because not enough initializers are given 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define clrscr() 100void main(){ clrscr(); printf("%d", clrscr());} 1 Error 100 1 Error 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 4..2 4..4 2..4 2..2 4..2 4..4 2..4 2..2 ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. None of these. The same as int *p[ p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. None of these. The same as int *p[ ANSWER DOWNLOAD EXAMIANS APP