#include int main() {     int i;     for(i=1,iprintf("%d",i); } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include int main() {     int i;     for(i=1,iprintf("%d",i); }

What will be the output?

14th May 2020, 11:54 PM
Md Saiful Islam
Md Saiful Islam - avatar
5 Answers
+ 3
Error * The include directive is missing header specification. * The parentheses in for-loop is missing a right-hand pair. * `iprintf` is undefined. The loop also is missing a terminator condition, you probably will end up having an infinite loop.
15th May 2020, 12:03 AM
Ipang
+ 3
Md Saiful Islam We have given you hints on the code's problem, it is now your turn to start, by fixing the problems. You will not believe what good teeling you will get once you get to fix code problems by yourself. It's a priceless experience, the kind of experience you would not get if someone else do it, while you just sit and watch. Give it a try! 👍
15th May 2020, 4:36 AM
Ipang
+ 2
not going to compile, #include what? for loop is butchered, no matching parentheses. no semicolon. where did you get that code?
15th May 2020, 12:04 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
#include<stdio.h> header file is missed
16th May 2020, 1:08 PM
T. Siva Kiran
T. Siva Kiran - avatar
- 4
Would you please do the the right things?
15th May 2020, 12:06 AM
Md Saiful Islam
Md Saiful Islam - avatar