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 |
What are the features of c language?
How can you print HELLO WORLD without using "semicolon"?
how could explain about job profile
what do u mean by Direct access files? then can u explain about Direct Access Files?
how to swap 2 numbers within a single statement?
What are # preprocessor operator in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is the difference between typeof(foo) and myFoo.GetType()?
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,
Explain zero based addressing.
Write a code on reverse string and its complexity.
write a programming in c to find the sum of all elements in an array through function.