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

Explain main function in c?

1047


Write a factorial program using C.

1027


Where we use clrscr in c?

1100


Are pointers really faster than arrays?

972


Where is volatile variable stored?

1033


difference between native and cross compilers

2089


What is a c token and types of c tokens?

1016


Is there a way to jump out of a function or functions?

1046


ATM machine and railway reservation class/object diagram

5201


What is the full form of getch?

1199


What are logical errors and how does it differ from syntax errors?

1241


what is the significance of static storage class specifier?

2196


What are derived data types in c?

1018


What is the process to generate random numbers in c programming language?

1113


Ow can I insert or delete a line (or record) in the middle of a file?

963