As said in the previous tutorial, in every C-Program we use a header file and inside those files we have our basic commands.
Datatypes
There are 3 main Datatypes that are used in C-Program:
1. int
int is used to assign a variable with natural numbers. (From 0 to infinity)
2. float
float is used to assign with Decimal numbers. (For example, 45.2)
3. char
char is used to assign variables with Characters (called as strings)
Variables
Variables represent a memory location in which we can store data of any type.
A vairable can be assigned with any word or character.
How to assign variables with datatypes?
First we write the "Datatype" and then the "Name" that you want to give the variable.
We will take an example of assigning a variable with a name add having a datatype of integer.