Electronics and Communication Engineering - Microprocessors - Discussion


Which of the following is not a valid variable name in C?

[A]. 1 a
[B]. a 1 2
[C]. a b 123
[D]. a b c 123

Answer: Option A


First character must be alphabet.

Lubna said: (Feb 9, 2015)  
Sir please explain how?

Madhan said: (Aug 11, 2016)  
Kindly explain it.

Naveen Kumar said: (Sep 14, 2016)  
We have to put the first variable as alphabet don't do any & operands there it's a basic form in C.

Prasu said: (Jun 21, 2018)  
C language in identifiers there is a rule that it should not start with a number.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.