C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} Runtime error 10012 g##g2 100 Syntax error Runtime error 10012 g##g2 100 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? The operand can come before or after the operator It associates from the right All of these It is a unary operator It cannot be applied to an expression The operand can come before or after the operator It associates from the right All of these It is a unary operator It cannot be applied to an expression 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, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = 3.14 % 2.1; rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); Remainder cannot be obtain in floating point division. rem = 3.14 % 2.1; rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); Remainder cannot be obtain in floating point division. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error will print garbage value None of these. will print Hello World Compilation Error will print garbage value None of these. will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5? 450 -10 10 110 -110 450 -10 10 110 -110 ANSWER DOWNLOAD EXAMIANS APP