+ 1
No function can be declared within the body of the another function...... True or false
4 ответов
+ 3
Yogita Dose False
Functions can be declared inside other functions.Only definitions are not allowed
E.g
Try running the following code and see for yourself
#include <stdio.h>
int main() {
void g(int a);
g(1);
return 0;
}
void g(int a)
{
printf("hello world");
}
+ 1
If you want you can try c++ lambdas