MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this C code? #include <stdio.h> int main() { char *str = "hello, world"; char *str1 = "hello, world"; if (strcmp(str, str1)) printf("equal"); else printf("unequal"); } |
| A. | equal |
| B. | unequal |
| C. | none |
| D. | Depends on the compiler |
| Answer» C. none | |