#include int main() { /* declare a string of up to 30 characters (one needed for NULL) */ char name [31]; /* initialize a string - the compiler automatically gives * enough space for the characters and NULL terminator */ char str [] = "Hello world!"; /* print a string */ printf("%s\n", str); /* read a string */ printf("Enter your name: "); scanf("%s", name); return 0; }