C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 1 -2 2 Error 1 -2 2 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It is a unary operator It associates from the right The operand can come before or after the operator All of these It cannot be applied to an expression It is a unary operator It associates from the right The operand can come before or after the operator All of these It cannot be applied to an expression ANSWER DOWNLOAD EXAMIANS APP
C Programming 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); 8 9 7 6 5 8 9 7 6 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } None of these int funct(); int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } None of these int funct(); int funct(int x) { return x=x+1; } 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 5 5 5 5 5 Infinite Loop None of These 5 4 3 2 1 5 5 5 5 5 Infinite Loop None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 2, 1, 15 1, 2, 5 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 3, 2, 15 ANSWER DOWNLOAD EXAMIANS APP