Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Is there a difference between 01 and 1 in int in C language?
Is there a difference between 01 and 1 in int in C language?

There is a difference between 01 and 1 in int in C language

In C language, 1, 1.0, '1', and "1" are all different. 1 is an integer, 1.0 is a real number, '1' is a character, "1" is a string

int is one of the basic data types of the C language, which means integer. In C language, there are many different data... Let's follow the editor to take a look. 01 "\0" in C language represents "string terminator".