codizzmafia banner

Codizzmafia | Programming related Articles and News.

types of variables in c language,what are variables in c language,what are the types of variable in c?,what is variable in c explain with example?,what is the size of data type in c?,variable in c



To learn very easy and deep understanding programming you should follow Q & A way,which is covered in this article.by using this way you get real time examples and also cover basic syntax and meaning of particular topic.you also get something new which is newer seen before in your programming journey.


types of variables in c language


What are the types of variable in c?

There is two type of variables in c language:
1) storage variable
2) External variable

Example of storage variable:
Integer
Char
Float
Double

NOTE: C language not support String variable.

Example of External variable:
Static
Auto
Register
Typedef



What is variable in c explain with example?

In any programming language variable Is use to store data which is either numerical or alphabetic.


There is two type of variables in c language
1) storage variable
2) External variable


1) storage variable

Integer

A number without any fractional part Is called as Integer number.Integer variable is used to store this kind of number.

Example:

#include<stdio.h>
#include<conio.h>

Int main()
{
 //To store some numeric value without fraction like:10,20 etc.
 Int a;
}

 Types of integer in c:
Int
Short int
Long int

Float

 A number with any fractional part is called float number in c language.float variable Is used to store this kind of number.

Example:

#include<stdio.h>
#include<conio.h>

Int main()
{
//to store fractional value,.like: 20.34,22.578 etc.
float f;
}

Types of float in C:
Float


Double

The double is a extended version of float variable which has more capacity to store fractional numbers than the float variable.

#include<stdio.h>
#include<conio.h>

Int main()
{
//to store fractional value which is not in float variable range
double d;
}

Types of double in C:
Double
Long double


Char

Char is a special integer type designed for storing single character.

#include<stdio.h>
#include<conio.h>

Int main()
{
//to store character value
char c;
}


 Types of char:
Unsigned char
Signed char


2) External variable

Sometimes the source code for C program is contained in more then one text file.if the case,then it may be necessary to use variables that are defined in another file.You can use a global variable in file other than the one in which it is defined re-declaring it,prefixed by the extern specifier,in the other files.

There is four type of external variable in c language.
Static
Auto
Register
typedef



What is the size of data type in C?



size of datatypes in c ,size of data types in c ,data types in c with size ,size and range of data types in c ,size of all data types in c ,size of data types in cpp ,program to find size of data types in c ,size of different data types in c ,size of data types in c in 16 bit ,size of data types in c in 32 bit ,how to find range of data types in c ,how to calculate range of data types in c ,memory size of data types in c ,size of various data types in c ,size of data types in c language ,size of data types in c in 64 bit ,range of data types in c in power of 2 ,program for size of data types in c ,size for data types in c ,what is the size of data types in c ,byte size of data types in c ,size of data types in c in 16 bit compiler ,what is range of data types in c ,storage size of data types in c ,size of data types in c in 64 bit compiler ,size of all data types in c program ,range of data types in c 32 bit ,size of data types in c in 32 bit compiler ,size of data types in c sharp ,size of data types in c c++ and java ,size of data types in c and c++ ,size of data types in turbo c ,size of data types in c program ,size of data types in c in gcc compiler ,size of the data types in c ,data types size in c for 16 bit compiler ,size of data types in c in 32 bit and 64 bit ,size of data types in c depends on ,range of data types in c meaning ,increase range of data types in c ,range of data types in c programming ,program to find the range of data types in c ,program to find size of different data types in c ,range of primitive data types in c ,how to remember range of data types in c ,how to calculate size of data types in c ,find size of data types in c ,size of unsigned char in c ,size of data types in c without sizeof ,size of pointer data types in c ,size of datatype in c c++ ,program to print range of data types in c ,program to print the size of various data types in c ,data types in c size_t ,size of data types in c with examples ,size of unsigned word in c ,program to find the size of all data types in c language ,size of fundamental data types in c ,print range of data types in c ,how to print range of data types in c ,size of data types in embedded c ,how to print size of data types in c




what are variables in c language

must watch this tutorial






thank you.

if you have any questions related to variables than please comment in the below section..


Post a Comment

Previous Post Next Post

native_banner