Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




C++ FOR SUM THROUGH OVER LOADED FUNCTION


Posted Date: 16 Mar 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: ashish singh       Member Level: Diamond
Rating:     Points: 2



PROGRAM FOR SUM THROUGH OVER LOADED FUNCTION

//overloaded function
#include
void sum(int a,int b)
{
cout<}

void sum(int a,int b,int c)
{
cout<}

void sum(int a,int b,int c,int d)
{
cout<}

void sum(int a,int b,int c,int d,int e)
{
cout<}

void main()
{
cout<<"using overloaded function\n";
sum(10,20);//two arguments
sum(10,20,30);//three arguments
sum(10,20,30,40);//four arguments
sum(10,20,30,40,50);//five arguments
}

Output:

using overloaded function
30
60
100
150
Press any key to continue




Responses

Author: Girish Patil    16 Mar 2008Member Level: Diamond   Points : 2
Hi Ashish

Your programms are really knowledge sharable. These programs are really useful to me during my campus interview.
please be keep it up.

Girish




Author: Girish Patil    16 Mar 2008Member Level: Diamond   Points : 3
Hi Ashish

Your programms are really knowledge sharable. These programs are really useful to me during my campus interview.
please be keep it up.

send some data structure programs i.e. for sorting, hashing ,etc

Girish



Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: C++ PROGRAM FOR SWAPPING USING FRIEND FUNCTION
Previous Resource: C++ PROGRAM FOR COMPARISION OF STRING USING OPERATOR OVERLOADING
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources

Watch TV Channels



Contact Us    Editors    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.