Can recusion occur in void data type function? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Can recusion occur in void data type function?

28th Apr 2018, 5:12 AM
Jason
2 Antworten
+ 6
Yes
28th Apr 2018, 5:32 AM
Rusty.Metal
0
Recursion simply means that the function calls itself. So yes, it can: https://code.sololearn.com/cEp12246LlmN/#cpp
28th Apr 2018, 5:27 AM
Chris
Chris - avatar