Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Parameter Passing

Parameter Passing

Ratings: (0)|Views: 29 |Likes:
Published by soundarpandiyan

More info:

Published by: soundarpandiyan on Feb 25, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

08/23/2010

pdf

text

original

 
Chapter EighteenModern Programming Languages1
Parameters
 
Chapter EighteenModern Programming Languages2
Parameter Passing
s
How are parameters passed?
s
Looks simple enough…
s
We will see seven techniques
int plus(int a, int b){return a+b;}int x = plus(1, 2);
 formal parametersactual parametersmethod bodymethod call 
 
Chapter EighteenModern Programming Languages3
Outline
s
18.2 Parameter correspondence
s
Implementation techniques
 – 
18.3 By value
 – 
18.4 By result
 – 
18.5 By value-result
 – 
18.6 By reference
 – 
18.7 By macro expansion
 – 
18.8 By name
 – 
18.9 By need
s
18.10 Specification issues

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
nabilsalim liked this
tnvgk liked this
tnvgk liked this
viji_raghava liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->