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
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is the use of volatile?
What are unions in c?
How do you construct an increment statement or decrement statement in C?
What is a string?
What is calloc() function?
What is openmp in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
How do you generate random numbers in C?
What is the basic structure of c?
What is sizeof array in c?
Where are local variables stored in c?
What is the advantage of an array over individual variables?