Nesting of Function

Wednesday, 7 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
void fun1();
void fun2();
clrscr();
printf("In main");
fun1();
printf("\nBack in Main");
getch();
}


void fun2()
{
printf("\nIn Function 2");
}


void fun1()
{
printf("\nIn function 1");
fun2();
}




OUTPUT:


In main
In function 1
In function 2Back in Main







No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading