#include int main() { char * str = "Hello World" ; while( *str ) { printf( "%s\n" , str ); // printf( "%p\n" , str) would print // the pointer value. str++; } return 0; }