+ 1
Is it possible to put a function in a function?
int main() { void printA() { std::cout << 'A'; } printA() }
3 Réponses
+ 5
Not possible in C++, but possible in some other languages like Javascript.
+ 2
Tried lamdas... didn’t understand... anyway thanks for answering. just needed to know if its possible to do it.