Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can integers be directly assigned to character types in C language?
Can integers be directly assigned to character types in C language?
In fact, in C language, both can be used in common most of the time.

The storage of a character type in a computer is its ASCII code.

The value of 3+'0' stored in the computer is 5 1. If displayed in the form of characters, it is.

The character' 3' is 5 1 if it is an integer.

So, it depends on whether you use characters or integers.