How to declare variable & Data type in C programming
..............................................................................................Here we have declared variable and how its use in c program using variable for beginner programmer to get understood easily how to use variable with data type in c language.
Data type in c program :
............................................Every variable will assign with data type in any programming language. so here we have given an example variable use in data types.
C example in data type with variable :
..............................................................we assume that suppose we have declared variable which name is var and we have assigned with data type integer.so value must be 0 to 9 digit because integer always takes value 0 to 9.
In our video we have shown this example.
This is a complete C programming tutorial using variable with its data type.So in our video tutorial we have declared one variable with value and it print in c compiler.And we also use integer data type.
Let's check our C example :
For better understand we will take one variable,name is var and it will declare in integer.
Here :
{It means that we have given value in var is 8 numeric digit that we want to print in c language.
int var=8;
printf ("\n Print the value of var =%d ",var);
}
so next line we have printed the value of when the variable hold numeric value is 8.

This printf() pre-define function always used in main function.we can also say the syntax is always used in under main function.
Here an example printf() function Declare in c :
main()This way we can declare printf() Pre define function and with its expression.
{
int var=8;
printf ("\n Print the value of var =%d ",var);
}
No comments:
Post a Comment