0
Can i use functions in for loop syntax
void r () { \\ Here some code } Int main () { for (r (); r () ; r () ) { \\ Here Some code } return 0; }
1 Antwort
+ 3
yes you can but not a functions return void you have to return boolean value for condition section
this is an example in c
https://code.sololearn.com/cJQ06OlH6gkm/?ref=app
basically in for loop you have a start point then an resuming condition then a step
you can put them separately but the base is condition