Is it possible to have a inline (recursive) function in C++? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 29

Is it possible to have a inline (recursive) function in C++?

Can anyone explain it to me...

10th May 2020, 4:43 PM
Aditya
Aditya - avatar
2 Réponses
+ 6
Yes it possible for you to write an inline recursive function but eventually, its the compiler that will decide whether to follow your wish or ignore it and generate a normal function This happens during compilation time and depends on factors that I cannot explain here exhaustively
11th May 2020, 6:39 AM
Anthony Maina
Anthony Maina - avatar
+ 13
Thanks bruu
11th May 2020, 3:18 PM
Aditya
Aditya - avatar