A
Q. What is the output of following c++ program?
Code:{
int a = 5;
int b = 10;
cout << (a>b?a:b);
}
Here, you will find a collection of MCQ questions on C++. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
{
int a = 5;
int b = 10;
cout << (a>b?a:b);
}
A
A
A
const int num = 20;
A
A
#include
using namespace std;
#define PI 3.14159
int main ()
{
float radious = 10;
float Circle;
Circle = 2 * PI * radious;
cout << Circle;
return 0;
}
A
#include
using namespace std;
int main()
{
int const num = 10;
cout << ++num;
return 0;
}
A
A
A
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ