Wrox Programmer Forums
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 9th, 2007, 01:37 AM
Authorized User
Join Date: Jul 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default By value, By reference

 Can any one teach me how to pass the array using passing by value and passing by reference with some sample code.

thanking you.


Reply With Quote
  #2 (permalink)  
Old October 10th, 2007, 11:04 PM
Authorized User
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Peter_APIIT

void passbyvalue(int[], int size();
void passbyreference(int *, int size);

I hope this help.

Linux is the best OS in the world.
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
reference. scandalous ASP.NET 2.0 Basics 1 April 9th, 2007 07:29 PM
get reference name demac43 Excel VBA 2 November 20th, 2006 02:35 PM
in need of reference! alialibidad SQL Language 1 June 4th, 2006 05:14 AM
in need of reference! alialibidad ASP.NET 2.0 Professional 0 June 3rd, 2006 04:11 PM
reference is not valid paul20091968 Excel VBA 0 May 19th, 2006 04:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.