What will be the output of the following C code? [code]void main() { div_t res; res = div(34, 4); printf("quotient part

What will be the output of the following C code?
Code:
void main() 
{ 
   div_t  res;  
   res = div(34, 4); 
   printf("quotient part = %d\n", res.quot); 
   printf("remainder part = %d\n", res.rem); 
}
A.
quotient part=0
remainder part=4
B.
quotient part=8
remainder part=2
C.
quotient part=4
remainder part=0
D.
quotient part=2
remainder part=8
 

Tìm kiếm

Back
Top