+ 1

Can we define a function inside a function?

What happens when we define a function inside a function?

1st Mar 2017, 1:00 PM
Utsuk Smile
Utsuk Smile - avatar
2 Answers
+ 11
Nested functions have been discussed to be implemented into C++, but the proposal was rejected long ago. Hence, you cannot have a function declaration inside another function.
1st Mar 2017, 1:28 PM
Hatsy Rei
Hatsy Rei - avatar