Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 20th, 2014, 9:35 AM   #1
tank
Programmer
 
Join Date: Sep 2011
Posts: 70
Rep Power: 6 tank is on a distinguished road
What is the output?

Procedure P(x,y,z)
{
y=y+1;
z=z+x;
}
main()
{
a=2;b=3;
P(a+b,a,a);
print(a);
}

1) call by value - 2
2) call by reference -8
3) call by copy/restore - ???

Can you please verify the ans and tell me how to evaluate the copy/restore
Thanks
tank is offline   Reply With Quote
Old Aug 6th, 2015, 5:48 AM   #2
WebOutGateway
Newbie
 
WebOutGateway's Avatar
 
Join Date: Aug 2011
Location: Pasig City, Philippines
Posts: 12
Rep Power: 0 WebOutGateway is on a distinguished road
Re: What is the output?

Hope you don't mind
Is that a kind of homework or what?, try to analyze and use your logical thinking.
__________________
Witness how bright ideas transform into your website needs. Contact us now!
Multilingual Website
WebOutGateway is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Output to External Process Pluto Java 0 Jul 26th, 2013 10:14 AM
rsync in conjunction with the --link-dest option does not output deleted files maikel Bash / Shell Scripting 0 Jan 6th, 2013 12:54 AM
Help formatting a C output Shaka89! C 1 Apr 23rd, 2011 11:25 PM
It's giving me "Press any key to continue" and no other output.. Insomniac C 15 Jun 5th, 2005 7:07 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC