C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 3)
3.
Which of the following special symbol allowed in a variable name?
Answer: Option
Explanation:
Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit.
Examples of valid (but not very descriptive) C variable names:
=> foo
=> Bar
=> BAZ
=> foo_bar
=> _foo42
=> _
=> QuUx
Discussion:
42 comments Page 4 of 5.
AKUGIZIBWE SAMUEL said:
9 years ago
Can we use underscore only as a variable name?
Umakant said:
1 decade ago
Means variable name max 32 characters only.
Rajat said:
7 years ago
What is meant by variable? Please explain.
(1)
Manish sharma said:
9 years ago
Is this decalartion int_aera22; correct?
Sudi said:
1 decade ago
Is the declaration int area_2; correct?
Manju said:
1 decade ago
Is int *a also possible in pointers.
Vamshi said:
7 years ago
Give one example for the pointer.
(1)
Keshav said:
1 decade ago
Why only _ underscore is allowed?
Logapriya.S said:
9 years ago
What is the purpose of foo?
Kanakam vinay kumar said:
1 decade ago
You are Correct prathyu.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers