C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 b = 4, c = 6 a = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 b = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h hi followed by garbage value hi Garbage Value Error h hi followed by garbage value hi Garbage Value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} None of These sizeof(i)=2 sizeof(i)=1 Compiler Error None of These sizeof(i)=2 sizeof(i)=1 Compiler Error 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);} will print garbage value Compilation Error will print Hello World None of these. will print garbage value Compilation Error will print Hello World None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int i=10; i = !i>14; printf("i=%d", i); } 0 10 None of these 14 1 0 10 None of these 14 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#include#define a 10void main(){ #define a 50 printf("%d", a);} 10 None of These 50 Compiler Error 10 None of These 50 Compiler Error ANSWER DOWNLOAD EXAMIANS APP