sizeof()
This operator accepts one parameter, which can be either a type or a variable itself and returns the size in bytes of
that type or object:
a = sizeof (char);
This will assign the value 1 to a because char is a one-byte long type.
The value returned by sizeof is a constant, so it is always determined before program execution.
This operator accepts one parameter, which can be either a type or a variable itself and returns the size in bytes of
that type or object:
a = sizeof (char);
This will assign the value 1 to a because char is a one-byte long type.
The value returned by sizeof is a constant, so it is always determined before program execution.
Learn More :
Functions
- string.h Definitions for memory and string functions
- stdlib.h Definitions for common types, variables, and functions
- stat.h Definitions used for file status functions
- alloc.h memory management functions and variables
- Structure of a program in C++ Learn
- io.h Definitions for low level I/O functions.
- dos.h Defines structs, unions, macros, and functions for dealing with MSDOS and the Intel iAPX86 microprocessor family.
- dir.h Defines structures, macros, and functions for dealing with directories and pathnames.