Data type table 


Hello friends today C for fun brings you the choice To know and grow your knowledge database yes you are right today we are going to learn about data types that are used in the C language.

How to go with that still confused no problem you can go through the blog and choose to increase your database...

How to choose which data type to use, confusing? don't worry c4fun is here to remove this confusion.

the type of data type you want to use depands upon the rquirment of the program of what type the value is required to be stored.

so when we choose a variable we also choose the datatype so that the wrong value or something which should not be our anser get stored in our variable .
below is the complete guide explaning the different data type and their range the type of valur they are used to store .
the use of them.gothrough them and you will be choosing the correct type of data type after that.

Data types ?

What are they ?

 how we enter  our  data into our programs, what type of data we enter all comes under the catagorie of datatype.
 C has some predefined set of data types that we can use.

 datatypes have different storage capacities,depanding ypon the their types.
These are of two types:

Primary :
 fundamental data types,
 integer
 floating point
 character and
void.

Derived  types:
these are same as primary datatypes but  little twisted  like array, stucture, union .
Data type tells the type of data a variable would  hold in it.

if  x is declared as int ,it means x can have only integer values.
variable which are u
sed in the program must be declared, of what data-type would it be?





Integer type is  used to store whole numbers
range -32,768 to 32767


Floating types store real numbers.
Float  range  3.4E-38 to 3.4E+38


Character types store characters value
char range   -128 to 127


void data type say no value.

 generally used to specify the functions which returns nothing.

 We will know more datatype as we start learning more advanced topics in C .

keep exploring the c language as more and more new features are keep on updating in c language, the basic but most important terms and their range which is generally asked in question during placement, plays a very big role if you know the correct range and type then you would be able to solve the problem correctly otherwise same will happen as happens with the others you would also land with wrong answer.

comment down your views how this blog help you to find the answer of questions ,and share with the world.

keep sharing as sharing is caring....



No comments

thanks for reading and sharing.I hope it would help you!!!!

Powered by Blogger.