1. First, open the C language compiler and create a new initialization. A cpp file, such as test.cpp
2. In the test.cpp file, enter the C language code: char * a = "helloprintf("%s", a); .
3. The compiler runs the test.cpp file, and the string is successfully output through% s.