Loops | SoloLearn: Learn to code for FREE!



Is for(int x:arr) work in C and C++?

4/27/2020 9:18:41 AM

Shams Urhman Rashidy

5 Answers

New Answer


In C you have no option but use classic for and while loops. Though you can create your own programming language in C. Python is written in C (and more languages)


Shams Urhman Rashidy in c you may have this type of for loop for(int x; condition; increment){ }



Thanks for help


We can have some like this loop in c