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
When do we get logical errors?
How do you initialize pointer variables?
What is getch?
What is a structure member in c?
What is array in c with example?
Why functions are used in c?
How are 16- and 32-bit numbers stored?
Are there any problems with performing mathematical operations on different variable types?
What is the difference between text and binary i/o?
Write a program in c to replace any vowel in a string with z?
In C language what is a 'dangling pointer'?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Explain the properties of union. What is the size of a union variable
What is type qualifiers?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321