Question
1.
#include
2.
using namespace std;
3.
#define SquareOf(x) x * x
4.
int main()
5.
{
6.
int x;
7.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
#define SquareOf(x) x * x
4.
int main()
5.
{
6.
int x;
7.
cout
Answer: Option D
Was this answer helpful ?
In this program, as we haven't initiailzed the variable x, we will get a output of ending digit of 4.
Output:
$ g++ mac1.cpp
$ a.out
75386824
Was this answer helpful ?
Submit Solution