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=5 d=5 c=3 d=5 c=3 d=3 c=5 d=3 c=5 d=5 c=3 d=5 c=3 d=3 c=5 d=3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program code?#include#define a 10void main(){ #define a 50 printf("%d", a);} 50 Compiler Error 10 None of These 50 Compiler Error 10 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 III and IV I, III and IV I, II and III I and II II and III III and IV I, III and IV I, II and III I and II II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..10 10..50 Error 0 10..10 10..50 Error 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 Garbage Value 0 0 Garbage value 0 Code will not compile Garbage vlaue Garbage Value 0 Garbage Value 0 0 Garbage value 0 Code will not compile Garbage vlaue Garbage Value 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 Hello World Compilation Error will print garbage value None of these. will print Hello World Compilation Error will print garbage value None of these. ANSWER DOWNLOAD EXAMIANS APP