What is data type in c.

 

What is data type in c.

    What is Data Type:-

  Ã¨     The data type of data is called datatype specify the type to data that a variable can store such as integer floating, Character, String e.t.c there are four types of data types.


rd    *How many types of data type.

i. Basic data type

ii. Drived data type

iii. Enmeration data type

iv.  Word data type.


Data Type

Used for

Example

String

Alphanumeric characters

hello world, Alice, Bob123

Integer

Whole numbers

7, 12, 999

Float (floating point)

Number with a decimal point

3.15, 9.06, 00.13

Character

Encoding text numerically

97 (in ASCII, 97 is a lower case 'a')

Boolean

Representing logical values

TRUE, FALSE











Post a Comment

0 Comments