C. Sum using Function(Parameter,Argument) // int yash(int a,int b)
#include<stdio.h>
int yash(int a,int b); //Function prototype || Parameter
int main()
{
int c=yash(7,7); //Function calling || Here 7 & 7 are arguments
printf("Sum of Number is :%d",c);
return 0;
}
int yash(int a,int b) //function defination || Parameter
{
int sum=0;
sum=a+b;
return sum; //returning sum to the function called
}
Comments
Post a Comment