#include <stdio.h>/*void fun(int*, int*);*/ int main(){ int i=5; for(; i<=5;i=i*i); i--; printf("%d",i); return 0; } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include <stdio.h>/*void fun(int*, int*);*/ int main(){ int i=5; for(; i<=5;i=i*i); i--; printf("%d",i); return 0; }

how to solve it.

15th May 2021, 6:19 PM
Vrushabh
Vrushabh - avatar
1 Answer
- 1
Vrushabh Dhanraj Lewade There is a Semicolon after for loop so statement will break there and i will be 25 but after i-- it will print 24. So what output do you expect?
15th May 2021, 8:01 PM
A͢J
A͢J - avatar