C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 5 Garbage Value 6 Compiler Error 5 Garbage Value 6 Compiler 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? 12 7 24 6 It will not compile because not enough initializers are given 12 7 24 6 It will not compile because not enough initializers are given 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);} will print garbage value None of these. Compilation Error will print Hello World will print garbage value None of these. Compilation Error will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 10 None of These 9 11 10 None of These 9 11 ANSWER DOWNLOAD EXAMIANS APP
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 Error x=5 x=4 x=0 x=1 Error x=5 x=4 x=0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 3 10 5 3 4 10 5 4 3 10 5 4 4 10 5 5 5 10 5 3 3 10 5 3 4 10 5 4 3 10 5 4 4 10 5 5 5 ANSWER DOWNLOAD EXAMIANS APP