C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff4 fff1 fff2 fff0 fff3 fff4 fff1 fff2 fff0 fff3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){ int value=0; if(value) printf("well done "); printf("examveda");} examians None of these complier error well done examians examians None of these complier error well done examians ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } Hello H Some address will be printed None of these. Hello H Some address will be printed None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 8 9 7 6 5 8 9 7 6 5 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 III I and II II and III II and IV III and IV I and III I and II II and III II and IV III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 -5 30 1 10 15 -5 30 1 10 15 ANSWER DOWNLOAD EXAMIANS APP