Determine output of the following program code.#include<stdio.h>void main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 3 8 8 3 7 3 3 7 None of these TRUE ANSWER : ? YOUR ANSWER : ?
What is right way to Initialize array? int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; TRUE ANSWER : ? YOUR ANSWER : ?
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 Compilation Error 0 -1 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} 10 11 None of these 15 12 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 17 19 16 20 TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 0 5 6 None of these Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 10 10 10 11 11 10 20 21 20 10 20 21 21 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 15 12 11 TRUE ANSWER : ? YOUR ANSWER : ?
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); 6 9 5 7 8 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);} None of These 64 16 4 TRUE ANSWER : ? YOUR ANSWER : ?