New course! Every coder should learn Generative AI!
Try a free lesson0
Can recusion occur in void data type function?
2 Answers
+ 6
Yes
0
Recursion simply means that the function calls itself. So yes, it can:
https://code.sololearn.com/cEp12246LlmN/#cpp