Doubt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Doubt

Can I declare variables inside loop like int a=5 below Eg #include<stdio.h> int main(){ int i=0; for(i=0;i<2;i++) int a=5; printf("%d",a); }

30th Oct 2020, 9:38 AM
S.Brindha
S.Brindha  - avatar
0 Answers