DWiki /
Nested Functions
Difference (last edit) (Author, normal page display)
Deleted: 18,19d17
|
|
Functions may be nested within other functions:
int bar(int a)
{
int foo(int b)
{
int abc() { return 1; }
return b + abc();
}
return foo(a);
}
void test()
{
int i = bar(3); // i is assigned 4
}
See also /FunctionLiterals.
(From DWiki)