C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); -1 Compilation Error 0 33 1 -1 Compilation Error 0 33 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following pointer declaration?int *ptr, p; ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } 1 2 3 4 4 5 6 7 4 Syntax error Runtime error 1 2 3 4 4 5 6 7 4 Syntax error Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} None of These three zero Error None of These three zero Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);} Hello None of These Some Address will be printed H Hello None of These Some Address will be printed H ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Error None of these. Some address will be printed. Will make an infinite loop. Error None of these. Some address will be printed. Will make an infinite loop. ANSWER DOWNLOAD EXAMIANS APP