imaxdiv_t类型
描述:
该类型是一种结构类型,表示imaxdiv函数返回值的类型。
范例:
|
|
输出:
The quotient is 3 and the remainder is 1.
GCC编译器<inttypes.h>头文件中imaxdiv_t类型定义如下:
typedef struct {
intmax_t quot;
intmax_t rem;
} imaxdiv_t;
相关内容:
imaxdiv | 计算商和余数的函数。 |