DEV Community

Cover image for Variable in C language
Atul Anand
Atul Anand

Posted on

Variable in C language

Variable is nothing but it is just like containers which store value.

Conditions for Naming a variable -:

  1. First character must be alphabets or underscore (_).

  2. Space , comma is not allowed.

  3. No special characters are allowed otherwise underscore (_).

  4. Variable names are case sensitive.

Valid Examples -: aaaa , _aaaa , aaa12 , aaa_bbb etc

Invalid Examples -: 1aaa , a b , a@b etc

Top comments (0)