Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Register FAQ Calendar Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 09-15-2016, 08:11 AM   #1
Registered User
Join Date: Jun 2015
Posts: 246
Thumbs up How C++ Passes Arguments

By default, C++ uses the call-by-value method for passing arguments. This means that,in general, code inside a function cannot alter the arguments used to call the function. In this book, all of the programs up to this point have used the call-by-value method.

Consider this function:

#include <iostream>
using namespace std;
int sqr_it(int x);
int main()
int t=10;
cout << sqr_it(t) << ' ' << t;
return 0;
int sqr_it(int x)
x = x*x;
return x;

Step Up Height Increaser | Air Sofa

Last edited by beingchinmay; 09-15-2016 at 08:14 AM.
beingchinmay is offline   Reply With Quote


html code

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google passes 60% search market share Larwee Google Search Engine and AdWords 0 08-03-2006 02:02 PM
Firefox passes 100 million downloads Larwee Web Design and Webmaster Issues 1 10-19-2005 09:10 PM
Gigablast passes 2 billion pages Larwee Search Engine Marketing & Optimization 2 06-10-2005 06:49 AM
Firefox passes 50 million downloads Larwee Web Design and Webmaster Issues 4 05-03-2005 02:51 PM
US Internet use passes 50% of population. Robert from SI Making Money with CPC and/or CPM Programs 14 02-06-2002 09:51 PM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 12:31 PM.

GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.