Get premium membership and access questions with answers, video lessons as well as revision papers.

State rules of naming variables in C++. How do they differ from ANSI C rules?

      

State rules of naming variables in C++. How do they differ from ANSI C rules?

  

Answers


Francis
1. Only alphabetic characters,digits and underscores are used.
2. The name cannot start with a digit
3. Uppercase and lower case letters are distinct.
4. Adeclared keyword cannot be used as a variable name.
-The difference between c and c++ is the limit on the length of a name.Since C recognizes only 32 characters in a name, c++ has no limit on the length of a character.

Francis Nkurumwa answered the question on February 9, 2018 at 14:17


Next: State 3 benefits of object oriented programming
Previous: What is atomic radius?

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions