Data types in C interview questions


Total available count: 8
Subject - Programming Languages
Subsubject - Data types in C

Explain int Data type with example?

An int requires 2 bytes on most compilers and the minimum and maximum numbers that these 2 bytes can hold are -32,768 and 32767 respectively. An int is used to store whole integer numbers and cannot have fractional values or a decimal point.

Example: 

int persons = 6;

 

 




Next 3 interview question(s)

1
How short modifier is used to modify the int data type?
2
What are the Basic Data types?
3
Which Modifiers used with Basic Data Types?


Comments