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 is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is %d called in c?
a 'c' program to tell that the set of three coordinates lie on a same line
what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
Why shouldn’t I start variable names with underscores?
What are bit fields? What is their use?
Write a pro-gramme to determine whether the number is even or odd?
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
what are two categories of clint-server application development ?
What is extern keyword in c?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is bubble sort technique in c?