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; }

16th Aug 2019, 4:56 PM
sonu Kumar
sonu Kumar - avatar
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
16th Aug 2019, 5:37 PM
ABADA S
ABADA S - avatar