Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is volatile c?

1023


What is wild pointer in c?

1080


What are the various types of control structures in programming?

1062


What is spaghetti programming?

1143


When should the const modifier be used?

1118


Is malloc memset faster than calloc?

1076


Do you know what are the properties of union in c?

1083


What are the advantages of using new operator as compared to the function malloc ()?

1353


How can I invoke another program or command and trap its output?

1100


What is function prototype in c with example?

1093


which type of aspect you want from the student.

2167


Explain what are the standard predefined macros?

1122


What does main () mean in c?

1101


What does %c mean in c?

1100


What do you mean by invalid pointer arithmetic?

1080