adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h> 
#define x 3
int main()
{
  int i;
  i = x*x*x;
  printf("%d",i);
  return 0;
}

a.

27

b.

x is not declared

c.

No output

d.

Garbage value

Posted under C Programming

Answer: (a).27

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?