Thursday, 23 March 2017

C data types

In C language we make variables by using data types.If we need to store value from user so for that purpose we need to store vale in memory space for that reason we make variables. It is mean that variables are the particular location in memory space where our values store.

let's see how we make variables by using Data Types.

                           data_type variable_name ;
                         
                              int   a ;

Here ( a ) is a variable name which create in memory now we can store any integer type of vale in this variable. Int is a C datatypes it shows only integer types of value will be store in this variable.

Data types is a keyword which define which type of value will be store. Here are some basic Data Types in C :

data types are further divided into Two parts.

  • Primary Data Types 
  • Secondary Data Types 

Primary Data Types 


Integer
Char
Float
Double
Void

Secondary Data Types

Array
Pointer 
structure 
Enum 






No comments:

Post a Comment