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 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
Write a C program to find the smallest of three integers, without using any of the comparision operators.
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
how to print 212 as Twohundreds twelve plz provide me ans soon
#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?
Explain Doubly Linked Lists?
Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?
main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs?
What is line in c preprocessor?
what is the diffrenet bettwen HTTP and internet protocol
What is the difference between declaring a variable and defining a variable?