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

Popular posts from this blog

Chapter # 3 Class IX

Components of Motherboard

Problem Solving Steps