Answer Posted / anandi
#include<stdio.h>
#include<conio.h>
void main()
{
int add(int,int);
int a,b;
clrscr();
printf("Enter two numbers: ");
scanf("%d %d",&a,&b);
printf("The Sum is: %d",add(a,b));
getch();
}
int add(int x,int y)
{
return(x+y);
}
| Is This Answer Correct ? | 42 Yes | 14 No |
Post New Answer View All Answers
What is header file definition?
Can we access array using pointer in c language?
How can I ensure that integer arithmetic doesnt overflow?
Explain the Difference between the New and Malloc keyword.
Why do we use c for the speed of light?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is main () in c?
what is use of malloc and calloc?
How many types of operators are there in c?
How can I insert or delete a line (or record) in the middle of a file?
Why is c called a structured programming language?
Is c easy to learn?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What are the features of c languages?
What are the 4 types of functions?