DamnSchool

Nesting Of Function.

C language provides a facility to write one function within another function. This method is called the nesting of function

Syntax

#include<stdio.h>
void add();
void print();
void main()
{
add();
}
void add()
{
int a=5,b=5,c;
c=a+b;
print(c);
}
void print(int x)
{
printf("sum is %d",x);
}

Run Example >

< Previous Next >

Privacy Policy Terms of Service About
Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.