You are on page 1of 4

Types of function with step-by-step statement

(User define function )


1.Return with argument..............Type 01

Int add (int a,int b)….. ( IMP Note-Void is only non-return is available)

{
Return
};

2.Return with without argument...........Type 02

Int add ()

{
Return
};
3.Argument with no return................Type 03

Void add ( int a,int b)


{
Non-Return
};

4.No argument No return.........Type 4

Void add ()
{
Non-Return
};
Type of function

1.Array
2.Pointer
3.Strcture

1. …................Array...............................

Data type—array name---[size];….....Formate

For example.
Int arr1[20];
Int I;
for( I=0 ; I<20; I++)
{
Scanf(“%d” , &arr[I]);
};

You might also like