Variables in C programming language

C programming language with its syntax.

What are the variables in C?

Variables in C programming language is a storage place which has some memory allocated to it and is used to store some form of data. Each variable It requires different amounts of memory depending upon the data types its holding.

What are the rules of variables in C programming Language?

Variables in C Programming language consists of alphabets (both upper and lower case), numbers and the underscore ‘_’ character.
NOTE: A variable cannot start with a number

Syntax of Variable Declaration in C:

1. Syntax for Single Variable in C programming langauge:
type variable_name;
2. Syntax for multiple Variable in C programming langauge:
type variable1_name, variable2_name, variable3_name;

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopping cart