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");} nullp nullq Depends on the compiler p q x nullq where x can be p or nullp depending on the value of NULL nullp nullq Depends on the compiler p q x nullq where x can be p or nullp depending on the value of NULL ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It associates from the right All of these The operand can come before or after the operator It is a unary operator It cannot be applied to an expression It associates from the right All of these The operand can come before or after the operator It is a unary operator It cannot be applied to an expression 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"); } } exam is printed Nothing is printed Compiler Error XAM is printed exam is printed Nothing is printed Compiler Error XAM is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of conditional compilation Acts before compilation All of these Takes care of include files Takes care of macros Takes care of conditional compilation Acts before compilation All of these Takes care of include files Takes care of macros ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 2 a[1] = 2 Compilation error a[1] = 3 a[0] = 3 a[0] = 2 a[1] = 2 Compilation error a[1] = 3 a[0] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 10 11, 10 10, 11 11, 11 10, 10 11, 10 10, 11 11, 11 ANSWER DOWNLOAD EXAMIANS APP