Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to use %s output string in C language?
How to use %s output string in C language?
The materials to be prepared are: computer and C language compiler.

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.