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); 9 5 7 8 6 9 5 7 8 6 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 4 3 10 5 3 3 10 5 5 5 10 5 3 4 10 5 4 4 10 5 4 3 10 5 3 3 10 5 5 5 10 5 3 4 10 5 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = -1, +i = 1 i = -1, +i = -1 i = 1, +i = 1 None of These i = -1, +i = 1 i = -1, +i = -1 i = 1, +i = 1 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, III and IV III and IV I and II II and III I, II and III I, III and IV III and IV I and II II and III I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 1 1 1 Error 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)); } Runtime error 4 5 6 7 Syntax error 4 1 2 3 4 Runtime error 4 5 6 7 Syntax error 4 1 2 3 4 ANSWER DOWNLOAD EXAMIANS APP