Nesting of functions is permitted in C. main function can call function1, which further can call function2, which calls function3 and so on. There is no limitans to how deeply functions can be nested. The following program segment illustrates the concept.
void main ()
{
. . . . .
. . . . .
function1 ()
. . . . .
}
void function1 ()
{
. . . . .
. . . . .
Function2 ()
. . . . .
void function2 ()
{
. . . . .
. . . . .
Function3 ()
. . . . .
}
void function3 ()
{
. . . . .
}
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc