I think it's output 12345 but why it's show output complier error plz explain? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I think it's output 12345 but why it's show output complier error plz explain?

#define LOOP(a) for(int i=1;i<=a;i++) \ {printf("%d ",i);} int main() { LOOP(5); return 0; }

11th Sep 2020, 6:52 AM
Suparna Podder
Suparna Podder - avatar
1 Answer
+ 3
Your code is working properly and Output giving as 12345 i tried no warnings or error showing try this again #include<stdio.h> #define LOOP(a) for(int i=1;i<=a;i++) \ {printf("%d ",i);} int main() { LOOP(5); return 0; }
11th Sep 2020, 7:17 AM
A S Raghuvanshi
A S Raghuvanshi - avatar