+ 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); }
2 Respostas
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); }