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
115 views
in Computer by (44.8k points)
closed by

Naming variables?

1 Answer

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

Naming variables

As we have understood till now, variables are basically like nouns in a programming language. Every variable in a program is unique. To identify these variables uniquely, user needs to allocate them a unique name. This name acts as an identifier for that variable. In programming, a user is not allowed to use the same name of a variable more than once.

Naming variables make it to easier to call them while performing operations. The name of a variable also suggests what information the variable contains.

You can refer to the example before for better understanding about variables:

If variable named as "a" is equal to 2 and variable named as "b" is equal to 2, performing add operation on "a" and "b" is going to result into an output as "4".

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

...