C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 17 16 19 20 -1 17 16 19 20 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));} g##g2 Runtime error 10012 Syntax error 100 g##g2 Runtime error 10012 Syntax error 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage value 0 0 0 Garbage vlaue Garbage Value Code will not compile 0 Garbage Value Garbage value 0 0 0 Garbage vlaue Garbage Value Code will not compile 0 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the maximum number of dimensions an array in C may have? 20 Theoratically no limit. The only practical limits are memory size and compilers. 8 50 2 20 Theoratically no limit. The only practical limits are memory size and compilers. 8 50 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when It is a formal parameter It is a declaratrion All of these Initialization is a part of definition It is a formal parameter It is a declaratrion All of these Initialization is a part of definition 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 30 -5 1 15 10 30 -5 1 15 10 ANSWER DOWNLOAD EXAMIANS APP