Answer Posted / balaji
/*this program is used to add two numbers using functions */
#include<stdio.h>
#include<conio.h>
void add(int,int);
void main()
{
int x,y;
printf("enter the two digits/numbers which you want to add");
scanf("%d%d",&x,&y);
add(x,y);
getch();
}
void add(int a,int b)
{
int c;
c=a+b;
printf("the sum of %d and %d is %d",a,b,c);
}
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of sprintf() function?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is nested structure with example?
What is keyword in c?
Explain what are the different data types in c?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
define string ?
Is c procedural or functional?
What are the advantages and disadvantages of a heap?
Implement bit Array in C.
How is a macro different from a function?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Can we use visual studio for c?