What is the issue with this code?
char str[5];
strcpy(str, "hello");
No Issue
strcpy is deprecated
"hello" has 6 characters (including null terminator), but str can only hold 5
str must be initialized
This question is part of this quiz :
Strings in C