For(int i=0;i<n;i++) is this possible in c language. What type of error it will give? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

For(int i=0;i<n;i++) is this possible in c language. What type of error it will give?

Declaration inside for loop

26th Nov 2019, 1:50 PM
Arjun T Raju
Arjun T Raju - avatar
3 Answers
+ 2
yes it's possible. it's valid, so no type of error.
26th Nov 2019, 2:03 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
There is an error in the output
26th Nov 2019, 3:07 PM
Arjun T Raju
Arjun T Raju - avatar
0
Arjun T Raju post the code you wrote.
26th Nov 2019, 3:08 PM
Bahhaⵣ
Bahhaⵣ - avatar