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
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Describe the order of precedence with regards to operators in C.
How will you delete a node in DLL?
Can include files be nested?
What are the 5 data types?
What is the use of #include in c?
How many levels of pointers have?
What is build process in c?
Can i use “int” data type to store the value 32768? Why?
What is the purpose of type declarations?
Compare and contrast compilers from interpreters.
Write a program to print factorial of given number without using recursion?
What are the __date__ and __time__ preprocessor commands?
What is a macro?
explain how do you use macro?