Question
#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
Posted under Object Oriented Programming Using C++
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?
Similar Questions
Discover Related MCQs
Q. How does the limits.h header file can be represented in C++?
View solution
Q. Pick out the correct syntax of the header file that can be used with C++.
View solution
Q. How many groups of output of operation are there in c++?
View solution
Q. Pick out the correct objects about the instantiation of output stream.
View solution
Q. What is meant by ofstream in c++?
View solution
Q. How many types of output stream classes are there in c++?
View solution
Q. What must be specified when we construct an object of class ostream?
View solution
Q. Which operator is used for input stream?
View solution
Q. Where does a cin stops it extraction of data?
View solution
Q. Which is used to get the input during runtime?
View solution
Q. How many parameters are there in getline function?
View solution
Q. What can be used to input a string with blankspace?
View solution
Q. When will the cin can start proceessing of input?
View solution
Q. Which is used for formatting purpose in c++?
View solution
Q. How many number of spaces should be set in default tab?
View solution
Q. What can be improved by formatting the source code?
View solution
Q. Choose the correct formatted code.
View solution
Q. Which function allows you to set minimum width for the next input?
View solution
Q. What is the use of the function “showbase”?
View solution
Q. Which operator is used to insert the data into file?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!