Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In the assignment statement, the entire character array is assigned by the assignment operator "=". If yes, please help me explain D's answer!
In the assignment statement, the entire character array is assigned by the assignment operator "=". If yes, please help me explain D's answer!
D. The entire character array cannot be assigned by the assignment operator "=" in the assignment statement.

Note that the title in the following description is "incorrect".

namely

According to upstairs, char a [] = "ABC" is legal in C/C++, so it should be.

You can assign a character array as a whole through the assignment operator "=" in the assignment statement.

Obviously, D's "can't" is wrong.

If you give the best, give it upstairs.