ISRO Scientist or Engineer Computer Science 2014 Question 3

Question 3

What is the output of the following C program?
#include <stdio.h>
#define SQR(x) (x*x)

int main()
{
int a;
int b = 4;

a = SQR(b + 2);
printf("%d \n", a);
return 0;
}



Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

Comments

Register with

OR

Boost your Prep!

Download App