Can we have a nested function in C? What is the use of nested functions? If they exist in C does their implementation differ from compiler to compiler?
Are nested functions allowed in any other language? If yes, then what is their significance?
Can we have a nested function in C? What is the use of nested functions? If they exist in C does their implementation differ from compiler to compiler?
Are nested functions allowed in any other language? If yes, then what is their significance?
is this not a nested function in C? ( the function displayAccounts() )
I know I could have defined the function differently and passed variables and what not but anyhow works nicely as I needed to print the accounts multiple times.
(snipet taken from a school assignment)...
Nested functions are not a part of ANSI C, however, they are part of Gnu C.