C4Codes
Pages
Home
quotedilse
book-kida
Wednesday, 25 March 2015
function: with parameter and with return value
#include<stdio.h>
#include<conio.h>
int add(int,int);
void main()
{
int a,b,z;
clrscr();
a=20;
b=10;
z=add(a,b);
printf("%d",z);
getch();
}
int add(int b,int a)
{
int c;
c=a+b;
return c;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment