Exercise 2.14:
Which, if any, of the following names are invalid? Correct each identified invalid name.
(a) int double = 3.14159; (b) char _;
(c) bool catch-22; (d) char 1_or_2 ='1';
(e) float Float = 3.14f;
在机器上试了一下,只有b、e正确。
Which, if any, of the following names are invalid? Correct each identified invalid name.
(a) int double = 3.14159; (b) char _;
(c) bool catch-22; (d) char 1_or_2 ='1';
(e) float Float = 3.14f;
在机器上试了一下,只有b、e正确。