MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program? #include<stdio.h> #include<string.h> int main() { char dest[] = {97, 97, 0}; char src[] = "aaa"; int i; if((i = memcmp(dest, src, 2))==0) printf("Got it"); else printf("Missed"); return 0; } |
| A. | Missed |
| B. | Got it |
| C. | Error in memcmp statement |
| D. | None of above |
| Answer» C. Error in memcmp statement | |