C Programming The default parameter passing mechanism is call by value None of these. call by value result call by reference call by value None of these. call by value result call by reference ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } Compiler Error 3 hello None of these Linking error Compiler Error 3 hello None of these Linking error ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 3, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 b = 3, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} Error hi h hi followed by garbage value Garbage Value Error hi h hi followed by garbage value Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } XAM is printed exam is printed Compiler Error Nothing is printed XAM is printed exam is printed Compiler Error Nothing is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} Depends on the compiler p q nullp nullq x nullq where x can be p or nullp depending on the value of NULL Depends on the compiler p q nullp nullq x nullq where x can be p or nullp depending on the value of NULL ANSWER DOWNLOAD EXAMIANS APP