MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
If the two strings are identical, then function r...
1.
If the two strings are identical, then function returns
A.
-1
B.
1
C.
0
D.
Yes
Answer» D. Yes
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The library function used to reverse a string is
If and bytes size, What will be the output of the program ?
For the following statements will and fetch the same character?
Which of the following statements are correct about the below declarations?
Is there any difference between the two statements?
If the two strings are identical, then function returns
What will be the output of the following C code?#include <stdio.h> int main() { char *s = "hello, Interveiw, Mania n"; printf("%d", strlen(s)); }
What will be the output of the following C code?#include <stdio.h> #include <string.h> int main() { char *s = "hello, Interview, Mania"; char s1[25]; strncpy(s1, s, 25); printf("%s %d", s1, strlen(s1)); }
What will be the output of the following C code?#include <stdio.h> int main() { char s[11] = "hello"; char *s1 = " Interview Mania"; strncat(s, s1, 10); printf("%s", s); }
What will be the output of the following C code?#include <stdio.h> int main() { char s[15] = "Interview"; char *s1 = " Mania"; strcat(s, s1); printf("%s %d", s, s[15]); }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies