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 Which of the following function calculates the square of 'x' in C? sqr(x) power(2, x) power(x, 2) pow(x, 2) pow(2, x) sqr(x) power(2, x) power(x, 2) pow(x, 2) pow(2, x) 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 Code will not compile Garbage vlaue Garbage Value Garbage value 0 0 0 0 Garbage Value Code will not compile Garbage vlaue Garbage Value Garbage value 0 0 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1 2, 3 None of these 1, 4 2, 4 1 2, 3 None of these 1, 4 2, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 5 5 5 5 Infinite Loop Compilation Error 5 4 3 2 1 None of these 5 5 5 5 5 Infinite Loop Compilation Error 5 4 3 2 1 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Makes the debugging task easier. Enhances the logical clarity of the program. All of these Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Makes the debugging task easier. Enhances the logical clarity of the program. All of these ANSWER DOWNLOAD EXAMIANS APP