datatypes Flashcards
1
Q
define datatypes ?
A
A data-type in C programming is a set of values and is determined to act on those values. C provides various types of data-types which allow the programmer to select the appropriate type for the variable to set its value.
2
Q
what are the different types of datatypes ?
A
TYPES OF DATATYPES
A) PRIMITIVE DATATYPE
B)DERIVED DATATYPES
C)USER DEFINED DATATYPES
3
Q
define integer datatype?
A
integer is used for defining whole numbers.no decimal value integer keyword in c - int int has types of modifiers- short int long int signed and unsigned
4
Q
define floating datatype?
A
floating datatype can hold real numbers.
the datatype keyword- (float) or (double)
5
Q
find the difference between float and double ?
A
float- size of float-(single precision datatype)-4 bytes precision of float-6 digits double- size of double-8 bytes precision of float-15 digits