C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 -1 0 Compilation Error 33 1 -1 0 Compilation Error 33 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 The function sprintf() works like printf(), but operates on .......... string no such function in 'C'. stderr stdin Data file string no such function in 'C'. stderr stdin Data file 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)); } Syntax error 1 2 3 4 4 5 6 7 4 Runtime error Syntax error 1 2 3 4 4 5 6 7 4 Runtime error 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 Syntax error 10 0 Infinite loop 0123456789 Syntax error 10 0 Infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} N P M None of These N P M None of These ANSWER DOWNLOAD EXAMIANS APP