Three Rules for Naming Variable in C++
Q#4: Write down any three rules of naming variable in C++?
Ans: The
general rules for constructing names for variables are:
1.
Names
can contain letters, digits and underscores.
2. Names must begin with a letter or an underscore (_).
3. Names cannot contain white spaces or special characters like !, #, %, etc.
Comments
Post a Comment