Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
#define MIN(a,b) (((a)
Options:
A .  100.01
B .  100.1
C .  compile time error
D .  none of the mentioned
Answer: Option A

:In this program, we are getting the minimum number using conditional operator.
Output:
$ g++ mac3.cpp
$ a.out
The minimum value is 100.01



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers