Answer Posted / shailender
We can do nesting of functions. I tried in GCC.
check this keyword auto does the magic.
int main()
{
func1();
}
func1()
{
int i = 0;
auto func2()
{
i = 10;
printf("Heloo i am func 2\n");
}
printf("Heloo i am func 1\n");
}
However it seems to me that there is no use of doing this
if you want to call func2 you can't do it from out side func1.
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is a macro in c preprocessor?
What is a program flowchart?
What is character set?
What language is windows 1.0 written?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
If you know then define #pragma?
Explain the binary height balanced tree?
What is the difference between array and linked list in c?
Is sizeof a keyword in c?
Why do we use & in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Can you think of a logic behind the game minesweeper.
What are the advantages and disadvantages of a heap?
Suggesting that there can be 62 seconds in a minute?
Explain how do you view the path?