Which of the following correctly declares a string in C?
char name = "John";
string name = "John";
char name[] = "John";
char name ={ 'J', 'o', 'h', 'n', '\0' };
This question is part of this quiz :