Sail E0 Webinar
Question

What is the output of this program?

#include < iostream >

using namespace std;

#define SquareOf(x) x * x

int main()

{

int x;

cout

Options:
A .  16
B .  64
C .  compile time error
D .  none of the mentioned
Answer: Option D


In this program, as we haven't initiailzed the variable x, we will get a output of ending digit of 4.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers