December 2005
Beginner to intermediate
618 pages
20h 19m
English
ldiv
Performs integer division, returning quotient and remainder
#include <stdlib.h> ldiv_tldiv( longdividend, longdivisor);
The parameters of ldiv()
are long integers, and its return
value is a structure of type ldiv_t containing two long integers. Otherwise, ldiv() works the same as the int function div().
See the example for div() in this
chapter.
Read now
Unlock full access