Question
How to declare a string variable in C?
Background
In my quest to learn the basics of c, I am trying to port on
C does not have a string variable type. Strings can be stored as character arrays (char variable type). The most basic example I would add up to the rest is:
int main() { char name[] = "Hello World!"; printf("%s",name); return(0); }