C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage vlaue Garbage Value 0 0 0 Garbage Value Code will not compile Garbage value 0 Garbage vlaue Garbage Value 0 0 0 Garbage Value Code will not compile Garbage value 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator has the lowest priority? || && + % ++ || && + % ++ ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; 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 1 30 -5 10 15 1 30 -5 10 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... 0 The number of successful read input values. The actual values read for each argument. 1 ASCII value of the input read. 0 The number of successful read input values. The actual values read for each argument. 1 ASCII value of the input read. ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} Syntax error g##g2 100 Runtime error 10012 Syntax error g##g2 100 Runtime error 10012 ANSWER DOWNLOAD EXAMIANS APP