C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=3 c=3 d=5 c=5 d=5 c=5 d=3 c=3 d=3 c=3 d=5 c=5 d=5 c=5 d=3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these It is a unary operator The operand can come before or after the operator It cannot be applied to an expression It associates from the right All of these It is a unary operator The operand can come before or after the operator It cannot be applied to an expression It associates from the right 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 12 15 14 Garbage Value 13 12 15 14 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 5 5 5 2 4 4 2 5 5 2 4 5 5 5 5 2 4 4 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} None of These Error Some address will be printed make an infinite loop None of These Error Some address will be printed make an infinite loop 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 15 1 10 30 -5 15 1 10 ANSWER DOWNLOAD EXAMIANS APP