#include int main () { char *hStr = "hello"; // String initialization. char *wStr = "world"; char ch; // Note the use of "%s" printf ("%s %s\n", hStr, wStr); printf ("3rd char in wStr is %c\n", *(wStr+2)); // Prints 'r' // Let's get the 6-th char: should be '\0' ch = *(wStr+6); if (ch == '\0') { printf ("char is string terminator\n"); } else { printf ("char is not string terminator\n"); } }