Function In C Language
#include<stdio.h>
#include<conio.h>
void main()
{
void sum();
clrscr();
printf("This program calculate the sum of two number");
sum();
getch();
}
void sum()
{
int x,y,result=0;
printf("Enter the value");
scanf("%d%d",&x,&y);
result=x+y;
printf("The sum of two number =%d",result);
getch();
}
------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
void sum(int,int)
int x,y;
clrscr();
printf("This program calculate the sum of two number");
printf("Enter the value");
scanf("%d%d",&x,&y);
sum(x,y);
getch();
}
void sum(int a,int b)
{
int result=0;
result=a+b;
printf("The sum of two number =%d",result);
}
-----------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
int sum(int,int)
int x,y,result=0;
clrscr();
printf("This program calculate the sum of two number");
printf("Enter the value");
scanf("%d%d",&x,&y);
result=sum(x,y);
printf("The sum of two number =%d",result);
getch();
}
int sum(int a,int b)
{
int s=0;
s=a+b;
return(s);
}




Welcome to OnlineGuru2020.blogspot.com, your number one source for all things related to Online Education. We're dedicated to providing you the very best of Digital Education, with an emphasis on E-notes,Download Links in PDF and youtube videos etc
OnlineGuru2020 Founded in [2020] by Sapan Kumar Das (Asst. Proff Ramchandi College Saraipali), OnlineGuru2020.blogspot.com has come a way from its beginnings .When I first started, my passion inspired me to start my own blog, seeing the need for students in lockdown2020
We hope you enjoy our products as much as we enjoy offering them to you. If you have any questions or comments, please don't hesitate to contact us.
Contact Datails:-
Mobile Number:-9826026747
Email:-sapam.online@gmail.com
Sincerely,
Sapan Kumar Das
.