Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - s[i]! 0 =0 is a character or an integer?
s[i]! 0 =0 is a character or an integer?
If both s and t are char types, then the 0 in the comparison is an ASCII value of 0.

"0" is the character 0, and its ASCII value is 48.

"0" is a string terminator with an ASCII value of 0.

Characters refer to the units or symbols of glyphs, including letters, numbers, operation symbols, punctuation marks and other symbols, as well as some functional symbols. Characters are the general names of letters, numbers and symbols in electronic computers or radio communication. It is the smallest data access unit in data structure, and usually a character is represented by 8 binary bits (one byte). ?

Character is a form of binary code that is often used in computers, and it is also the most commonly used form of information in computers.

Meaning of characters:

Characters include symbols such as letters, numbers, operation symbols, punctuation marks, and some functional symbols. When characters are stored in computer memory, the corresponding binary code representing the characters should be specified.

The selection of codes shall conform to the specifications of relevant peripheral devices. These peripheral devices include the input and output of the keyboard console, the output of the printer and so on. When characters are input, they should be automatically converted into binary codes and stored in the machine; When outputting, the binary code in the computer is automatically converted into characters, and the conversion between them is all realized by peripheral devices.