MCQs>IT & Programming>Programming With C>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);
Programming With C MCQs
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);
Answer
Correct Answer: The code snippet will throw a compilation error
Explanation:
Note: This Question is unanswered, help us to find answer for this one