adplus-dvertising
frame-decoration

Question

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

a.

9

b.

Compilation error

c.

3

d.

27

Posted under C Programming

Answer: (d).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?