#How to output special symbols in c language?
Method to output special symbols:
1. Directly use ASCII code to output a single special symbol. For example: char c = 164;//Symbol '¤'
2. Use "escape character ASCII code" to output a string containing special symbols. For example: char* str = "abc\xa4";//"abc¤"
Escape characters: \xhh hh represents the hexadecimal ASCII code of the character.
Recommended tutorial: "C Language"
The above is the detailed content of How to output special symbols in C language?. For more information, please follow other related articles on the PHP Chinese website!