Community Sites
Create your own community website and start earning today !
It's Free !
Forum
Resources
Mentors
Projects
Entrance Exams
Question Papers
Colleges
Courses
Universities
Schools
Make Money
Communities
Members
Bookmarks
Polls
Fresher Jobs
Funny Pictures
MCA Projects
New Member FAQ
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Anil
(91)
lukky
(72)
Nadheera V
(49)
Last 7 Days
Saagar
(1818)
sunil
(1775)
satish
(1735)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
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.
C++ PROGRAM FOR DEMONSTRATION OF DEFAULT VALUE ARGUMENT
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 DEMONSTRATION OF DEFAULT VALUE ARGUMENT
//functin using default value argument
#include
void get_sum(int a=0, int b=0,int c=0,int d=0)
{
cout<
}
void get_multiplication(int a=1, int b=1,int c=1,int d=1)
{
cout<
}
void main()
{
cout<<"printing the sum of numbers"<
get_sum(10,20);
get_sum(10,20,30);
get_sum(10,20,30,40);
cout<<"printing the multiplication of numbers"<
get_multiplication(10,20);
get_multiplication(10,20,30);
get_multiplication(10,20,30,40);
}
Output:
printing the sum of numbers
30
60
100
printing the multiplication of numbers
200
6000
240000
Press any key to continue
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(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 to demonstrate fonts using graphics.h
Previous Resource:
C++ PROGRAM FOR SEQUENTIAL SEARCH
Return to Discussion Resource Index
Post New Resource
Category:
Computer & Technology
Post resources and
earn money
!
Related Resources
What is a Proxy Server?
CREATING FIRST WEB FORM IN ASP.NET WITH C#
C Concept-Control Structures
C Concept-The printf Function
C QUESTIONS ON ORDER OF EVALUATION(SECTION 3)
Watch TV Channels
Watch Asianet online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
Contact Us
Editors
Privacy Policy
Terms Of Use
SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.