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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the different types of datatypes ?

A

TYPES OF DATATYPES
A) PRIMITIVE DATATYPE
B)DERIVED DATATYPES
C)USER DEFINED DATATYPES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

define floating datatype?

A

floating datatype can hold real numbers.

the datatype keyword- (float) or (double)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly