Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
98 views
in Computer by (44.8k points)
closed by

What are your opinions on naming convention of variables declared in programming? Write down five best practices that you think one should follow while declaring variables.

1 Answer

+1 vote
by (44.9k points)
selected by
 
Best answer

1. All variable names must begin with a letter of the alphabet or an. underscore( _ ).

2. After the first initial letter, variable names can also contain letters and numbers.

3. Uppercase characters are distinct from lowercase characters.

4. You cannot use a C++ keyword (reserved word) as a variable name.

5. Create variable names by deleting spaces that separate the words.

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...