C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} 300 %d\n Error None of These 300 %d\n Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 0 0 Garbage Value Garbage vlaue Garbage Value Garbage value 0 Code will not compile 0 0 0 Garbage Value Garbage vlaue Garbage Value Garbage value 0 Code will not compile ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. I and II I and III III and IV II and IV II and III I and II I and III III and IV II and IV II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);} 64 16 None of These 4 64 16 None of These 4 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=5 Error x=4 x=0 x=1 x=5 Error x=4 x=0 x=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Any C program 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. None of these ANSWER DOWNLOAD EXAMIANS APP