Home>Article>Backend Development> What is the end mark of a string in C language?
What is the end mark of a C language string? How to add an end mark to a C language string
c language characters The end of string mark is\0
1. First, we open the C language editing software.
#2. Then we click on "File" and "New". After entering the interface, we create a new C file.
#3. We need to know that the string end mark in C language is the character ‘\0‘. Normally we have two ways to output the end flag.
#4. Directly use the character ‘\0’ to output the end mark.
#5. We can also use ASCII code. The ASCII code of '\0' is 0, so we can use 0x00 to output the end mark.
Recommended learning:c language video tutorial
The above is the detailed content of What is the end mark of a string in C language?. For more information, please follow other related articles on the PHP Chinese website!