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
Write a program to use switch statement.
What is meant by recursion?
why return type of main is not necessary in linux
State the difference between x3 and x[3].
What do the functions atoi(), itoa() and gcvt() do?
What is the size of structure in c?
How do you list files in a directory?
What is hashing in c language?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Explain what is the benefit of using enum to declare a constant?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
How do shell structures work?
Explain what are multidimensional arrays?
What is sizeof array in c?