Search This Blog

Wednesday, June 2, 2010

3-Function 01-2 int(Pass Arguments to Function and get Return value) Add two numbers

/* More Samples :-
http://www.helptoc.blogspot.com
mail - helptoc@gmail.com
*/

#include

//int calc (int a, int b);

int calc_sum(int a, int b)
{
return a + b;
}


int main()
{
int tot;
tot=calc_sum(23, 55);
printf ("Total = %d\n", tot);
exit (0);
}

1 comment: