Question
#include <iostream>
using namespace std;
#define MIN(a,b) (((a)<(b)) ? a : b)
int main ()
{
float i, j;
i = 100.1;
j = 100.01;
cout <<"The minimum is " << MIN(i, j) << endl;
return 0;
}
a.
100.01
b.
100.1
c.
compile time error
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. What is the other name of the macro?
View solution
Q. Which of the following is used to implement the c++ interfaces?
View solution
Q. What is the ability to group some lines of code that can be included
View solution
Q. How many types does functions fall depends on modularization?
View solution
Q. How many types of modularization are there in c++?
View solution
Q. What does the client module import?
View solution
Q. Identify the correct statement.
View solution
Q. What is similar to interface in c++
View solution
Q. Which of the following implements the module in the program?
View solution
Q. A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?
View solution
Q. A function that returns no values to the program that calls it is _____
View solution
Q. Which of the following statements is false?
View solution
Q. The generic type in a template function
View solution
Q. A function that is called automatically each time an object is destroyed is a
View solution
Q. Overloaded functions are required to
View solution
Q. You mark the beginning of a function's block of code with the _____
View solution
Q. Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program
View solution
Q. When you omit parameters from a function call, values can be provided by
View solution
Q. When an argument is passed by reference,
View solution
Q. The last statement in a function is often a(n) _____
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!
Cyber Security
Understand the fundamentals of safeguarding digital assets with our Cyber Security...
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...