MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following code segment, if any? myfunc ( struct test t) { strcpy(t.s, “world”); } main( ) { struct test { char s[10]; } t; strcpy(t.s, “Hello”); printf(“%s”, t.s); myfunc(t); printf(“%s”, t.s); } |
| A. | Hello Hello |
| B. | world world |
| C. | Hello world |
| D. | the program will not compile |
| Answer» E. | |