Answer Posted / punam
Thank you all. This was helpful to me. So, to summarize all this should I say:
1. In C, we cannot define a function inside another function.
2. However, main() function is an exception as we can define another function inside a main() function. This can be called nesting of function inside main(). The inner function cannot be called from any outside function. It can be called only from main().
3. The only way to access the inner function from outside main() is by passing a function pointer of type inner function.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is extern storage class in c?
What is the advantage of c?
Difference between MAC vs. IP Addressing
What is difference between array and structure in c?
What does 2n 4c mean?
Why can’t constant values be used to define an array’s initial size?
What is a good way to implement complex numbers in c?
What are inbuilt functions in c?
What are compound statements?
Why use int main instead of void main?
Are enumerations really portable?
What does != Mean in c?
Dont ansi function prototypes render lint obsolete?
What is difference between array and pointer in c?
What are linker error?