Page 8 - PROGRAMMING IN C_Neat
P. 8
Execution of C Program - Diagram
Source Program Edit Source Program
Compile Source Program
Syntax Yes
Error?
No
Object Program
Header Files Link Object Program
Executable Program
Run Executable Program
Lo gic Yes
Error?
No
Correct Output
_______________________________________________________________________________________
8. Explain the data types in C. *
Basic Data Types:
Data Type Description Size
char Character 1 Byte
int Integer 2 Bytes
float Single-precision floating point number 4 Bytes
double Double-precision floating point number 8 Bytes
Data Type Qualifiers:
Sign Qualifiers:
1. signed
2. unsigned
These qualifiers affect the sign of the data type.
Size Qualifiers:
1. long
2. short
These qualifiers affect the size of the data type.
Examples:
signed int
unsigned int
long int
short int
_______________________________________________________________________________________