adplus-dvertising
frame-decoration

Question

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

a.

Compilation error

b.

10

c.

5

d.

Runtime error

Posted under C Programming

Answer: (b).10

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?