Level 19 Level 21
Level 20

[Quiz] Data Types


17 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
data types
refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.
Basic Types:
Basic Types: (Types and Description)
Enumerated types:
They are arithmetic types used to define variables that can only be assigned certain discrete integer values throughout the program.
The type void:(Types and Description)
The type specifier void indicates that no value is available.
Derived types:(Types and Description)
They include (a) Pointer types, (b) Array types, (c) Structure types, (d) Union types and (e) Function types.
The array and structure types
are referred to collectively as the aggregate types
Integer
Storage size:1 byte
unsigned long (Integer Types)
Storage size: 4 byte
sizeof(type)
This expression yields the storage size of the object or type in bytes on a particular platform
Floating-Point Types
The header file float.h defines macros that allow you to use these values and other details about the binary representation of real numbers in your programs.
Flot (Floating-Point Types)
Storage size: 4 byte
A double type
Its stored with 8 byte
long double
Storage size: 10 byte
The header file float.h defines
macros that allow you to use these values and other details about the binary representation of real numbers in your programs. Following example will print storage space taken by a float type and its range values:
Function returns as void (void Type)
There are various functions in C which do not return value or you can say they return void. A function with no return value has the return type as void. For example void exit (int status);
A void function argument
It doesn't accept any parameter.
A pointer to void type
Specified as void *, represents the address of an object, but not its type.