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 |
How can I remove the leading spaces from a string?
21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
Is c high or low level?
What is sizeof int?
What is the difference between procedural and declarative language?
When a c file is executed there are many files that are automatically opened what are they files?
Can you add pointers together? Why would you?
what is uses of .net
what is a constant pointer in C
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?
What is cohesion in c?
What is string length in c?