If the two strings are identical, the strcmp() function returns?
Correct Answer: 0
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C Programming MCQ Questions
How many times i value is checked in the below code? #include int main() { int i = 0; do { i++; printf('in while loop\n'); } while (i < 3); }
Output of following code:- #include #include void display(int num,...); int main() { display(4,'A','B','C','D'); return 0; } void display(int num, ...) { char c,c1; int j; va_list ptr,ptr1; va_start(ptr,num); va_start(ptr1,num); for(j=1;j<=num;j++) { c=va_arg(ptr, int); printf('%c,',c); c1=va_arg(ptr1, int); printf('%d\n',c1); } }
Output of the following code? int main() { FILE *foobar = stdout; int foo; fprintf(foobar, '%d ', 20); fflush(stdout); fprintf(stderr, '%d', 99); return 0; }
log(x) function defined in math.h header file is
Output of this C code? int main() { int i = 10; void *p = &i; printf('%d\n', (int)*p); return 0; }
Output of following code? int main() { int a=5; if(a=10) printf('Value of a=%d',a); else printf('Value of a=%d',a); return 0; }
Which is an invalid operator?
Output of following program? #include int main() { int y=128; const int x=y; printf('%d\n',x); return 0; }
Output of the following code? main() { int foo = 10; foo = foo << 2; printf('foo = %d',foo); }
Which is the correct usage of conditional operator in C?