C Tutorial/stdlib.h/div

Материал из C\C++ эксперт
Версия от 13:32, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

div

Item Value Header file stdlib.h Declaration div_t div(int numerator, int denominator); Return returns the quotient and the remainder of the operation numerator/denominator in a structure of type div_t.

The structure type div_t has these two fields:


<source lang="cpp">int quot; /* quotient */

 int rem;  /* remainder */</source>