+ 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
2 Respostas