TOC | Prev | Next

sizeof()

Gives the number of bytes of a given type.

int *scores = malloc( 100 * sizeof( int ) );

It's a compile-time pseudo-function. Sorry, no run-time type sizing.

TOC | Prev | Next