Vidyalelo
C Programming · Q197

Standard Library Functions

Programming · C Programming · question 197

Q197

What will be the output of the following C code? void main() div_t res; res = div(34, 4); printf("quotient part = %d ", res.quot); printf("remainder part = %d ", res.rem);

A.
quotient part=0
remainder part=4
B.
quotient part=8
remainder part=2
Answer
C.
quotient part=4
remainder part=0
D.
quotient part=2
remainder part=8

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board