C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff2 fff0 fff1 fff3 fff4 fff2 fff0 fff1 fff3 fff4 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 x=4 Error x=0 x=5 x=1 x=4 Error x=0 x=5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the correct output of the following program?#includevoid main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} NOITANIMAXE Syntax error C No output at all. NOITANIMAXE C NOITANIMAXE Syntax error C No output at all. NOITANIMAXE C 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 The declarationint (*p) [5];means The same as int *p[ p is a pointer to a 5 elements integer array. None of these. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ p is a pointer to a 5 elements integer array. None of these. p is one dimensional array of size 5, of pointers to integers. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? A definition occurs once, but a declaration may occur many times. There is no difference between them. Both can occur multiple times, but a definition must occur first. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. A definition occurs once, but a declaration may occur many times. There is no difference between them. Both can occur multiple times, but a definition must occur first. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. ANSWER DOWNLOAD EXAMIANS APP