Different types of data variables in C programming language

Nazim Alvi
2 min readJun 8, 2021

--

What is a data variable?

A data variable in any programming language is a name that we can give to a memory location (or storage area) that can hold the values based on its specific type (i.e. data type). Simply, we can say that a variable name is nothing but a symbolic representation of a memory location.

To indicate the memory location, each variable must be given a unique name. A variable can be used many times and its value can be changed also. In the C programming language, the variable type cannot be changed once it is declared because the C language is strongly typed.

The memory size, the type of values, the range of values, etc. are determined by the data type of a variable. Different types of variables needed a different amount of memory. Read Data Types in details: https://alvinser.com/data-types-in-c-programming-language.html.

How can we name a variable? A variable’s name can be formed by using uppercase letters (A-Z), lowercase letters (a-z), digits (0–9), and the underscore (_). Both the uppercase letters and the lowercase letters are different because the C programming language is a case-sensitive language. So, a variable can be of the following basic types:

Read complete article: https://alvinser.com/data-variables-in-c-programming-language.html

--

--

Nazim Alvi
Nazim Alvi

No responses yet