Question:What would be printed on the standard output as a result of the following code snippet?
char *str1 = "Hello World";
strcat(str1, '!');
printf("%s", str1);
 

A Hello World! 

B Hello World 

C Hello 

D The code snippet will throw a compilation error 

E H 

+ Answer
+ Report
Total Preview: 686

Copyright © 2024. Powered by Intellect Software Ltd