How to add two numbers with using function?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vinay kumar
suppose x=5 and y=10,Then
while(y!=0)
{
x++;
y--;
}
printf("the sum value is:%d
",x);
Is This Answer Correct ? | 0 Yes | 0 No |
When should the volatile modifier be used?
What is c programing language?
what is dangling pointer?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the difference between %d and %*d in C
What is the use of pointers in C?
0 Answers Impetus, Motorola, Tavant Technologies, Virtusa,
What are the uses of a pointer?
program in c to print 1 to 100 without using loop
Write a program on swapping (100, 50)
What is C++
In a byte, what is the maximum decimal number that you can accommodate?
how to write palindrome program?