What will be the output of the following C code?
void main()
{
div_t res;
res = div(34, 4);
printf("quotient part = %d\n", res.quot);
printf("remainder part = %d\n", res.rem);
}
Answer: B
div_t div(int n, int d) used to divide n (numerator) by d (denominator). div_t is a structure defined in
int quot;
in rem;