Write a program to find function with argument and return type.

Write a program to find function with argument and return type.

 

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int x=10,y=20,z;

int abc(int x,int y);

z=abc (x,y);

printf("value of z=%d",z);

getch();

}

abc (int a,int b)

{

int c;

c=a+b;

return c;

}

 

Output:

 

Value of z=30


Comments