C Programming Determine Output:#include#define a 10void main(){ #define a 50 printf("%d", a);} None of These 50 10 Compiler Error None of These 50 10 Compiler Error 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 15 1 -5 10 30 15 1 -5 10 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 13 Garbage Value 12 15 14 13 Garbage Value 12 15 14 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator from the following has the lowest priority? Unary-operator Division operator Comma operator Assignment operator Conditional operator Unary-operator Division operator Comma operator Assignment operator Conditional operator ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the correct output of the following program?#includevoid main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} NOITANIMAXE Syntax error NOITANIMAXE C C No output at all. NOITANIMAXE Syntax error NOITANIMAXE C C No output at all. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 None of These Infinite Loop 5 5 5 5 5 5 4 3 2 1 None of These Infinite Loop 5 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP