πŸ“Š C Programming
Q. What is the output of this program?
Code:
#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) Garbage value
  • (D) No output
πŸ’¬ Discuss
βœ… Correct Answer: (A) 27

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
170
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate