adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <stdio.h>
    #include <stdlib.h>
    int main ()
    {
        div_t divresult;
 
        divresult = div (38, 5);
        printf ("%d\n", divresult.rem);
        return 0;
    }

a.

7

b.

3

c.

4

d.

None of the mentioned

Answer: (b).3

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?