Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does' 0' in c++ mean?
What does' 0' in c++ mean?
Character 0

Single quotation marks are character types.

Double quotation marks belong to string type, and they are different.

Not the same as 0 without quotation marks.

Zero without quotation marks represents an integer.

First of all, data is stored in binary in memory.

The character type "0" is 00 1 10000 in memory and 48 in decimal.

The integer 0 is 00000000 in memory.

Variables are defined spaces in memory.

If there is an integer variable value equal to 48

For example, int a = 48

There is a character variable char b;;

Give the values of a to b.

b = a;

Then, b is equal to' 0'

All right, that's it. Let's adopt the answer.