C Programming Comment on the following pointer declaration?int *ptr, p; ptr is pointer to integer, p may or may not be. ptr and p both are not pointers to integer. ptr is a pointer to integer, p is not. ptr and p, both are pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p both are not pointers to integer. ptr is a pointer to integer, p is not. ptr and p, both are pointers to integer. 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 0 10..50 Error 10..10 0 10..50 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} None of These Infinite Loop 0 0 0 0 5 4 3 2 1 None of These Infinite Loop 0 0 0 0 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} GOOD BAD GOOD None of These Compiler Error GOOD BAD GOOD None of These Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} None of these 7 3 3 7 3 8 8 3 None of these 7 3 3 7 3 8 8 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} A run time error will be generated. There will be a compilation error reported. The loop will run infinitely many times. Prints the value of 0 one time only. The program will not enter into the loop. A run time error will be generated. There will be a compilation error reported. The loop will run infinitely many times. Prints the value of 0 one time only. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP