How to add two numbers with using function?
Answer Posted / 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 |
Post New Answer View All Answers
What is file in c language?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
How do you define structure?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain the term printf() and scanf() used in c language?
Is javascript based on c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Write a program to find the biggest number of three numbers in c?
How can you return multiple values from a function?
What is a constant?
What’s the special use of UNIONS?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain what are multibyte characters?