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");} 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 nullp nullq Depends on the compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=3 j=2 the behavior is undefined i=4 j=2 i=5 j=2 i=3 j=2 the behavior is undefined i=4 j=2 i=5 j=2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 14 13 Compilation error 12 11 14 13 Compilation error 12 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 0123456789 Infinite loop 0 Syntax error 10 0123456789 Infinite loop 0 Syntax error 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45545 45445 54554 54544 45545 45445 54554 54544 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) 30 10 50 None of these 15 30 10 50 None of these 15 ANSWER DOWNLOAD EXAMIANS APP