Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
+ 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); }

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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Error in python
3 Votes
Linking GitHub with Sololearn profile
2 Votes
Why Sololearn Removed Our Saved Private Project (Codes), I Can't Find This Option.
2 Votes
Am getting discourage in my Language, Help me out🙏🙏
1 Votes
Model Context Protocol ? What is it ?
2 Votes
Do you Think Sololearn should add GDscript?
2 Votes
High paying job?
2 Votes
Not Accessing Message Function
0 Votes
Pls wat is the answer for dis question
0 Votes
Where have they gone
1 Votes