C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } XAM is printed Compiler Error Nothing is printed exam is printed XAM is printed Compiler Error Nothing is printed exam is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error 4 5 6 7 Runtime error 1 2 3 4 4 Syntax error 4 5 6 7 Runtime error 1 2 3 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=EXAMIANS y=AMVEDA y=VEDA y=MVEDA y=EDA y=EXAMIANS y=AMVEDA y=VEDA y=MVEDA y=EDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop 5 5 5 5 5 None of These 5 4 3 2 1 Infinite Loop 5 5 5 5 5 None of These 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming For 16-bit compiler allowable range for integer constants is ________? -32668 to 32667 -32767 to 32768 -3.4e38 to 3.4e38 -32768 to 32767 -32668 to 32667 -32767 to 32768 -3.4e38 to 3.4e38 -32768 to 32767 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) There should be a semicolon at the end of the statement. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. There should be a semicolon at the end of the statement. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP