#include<stdio.h> #include<string.h> int main(){ // char s[3] = {'H', 'i', '\0'}; char* s = "Hi"; // Almost equivalent to the commented line above: // in both cases, s has a pointer value (pointing to a char). // The only difference is that s is actually a local variable // (so it can be modified) printf("%s\n",s); s = s + 1; // Try to modify s printf("%s\n",s); }