How to add two numbers with using function?
Answer Posted / geetha
#include<stdio.h>
#include<conio.h>
int add(int,int);
main()
{
int a,b,c;
printf("enter a,b values");
scanf("%d%d",&a,&b);
c=add(a,b);
printf("%d",c);
}
int add(int x,int y)
{
return(x+y);
}
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Explain main function in c?
Write a factorial program using C.
Where we use clrscr in c?
Are pointers really faster than arrays?
Where is volatile variable stored?
difference between native and cross compilers
What is a c token and types of c tokens?
Is there a way to jump out of a function or functions?
ATM machine and railway reservation class/object diagram
What is the full form of getch?
What are logical errors and how does it differ from syntax errors?
what is the significance of static storage class specifier?
What are derived data types in c?
What is the process to generate random numbers in c programming language?
Ow can I insert or delete a line (or record) in the middle of a file?