IT Community - Software Programming, Web Development and Technical Support

differentiate between formal arguments and actual arguments

This is a discussion on differentiate between formal arguments and actual arguments within the C and C++ Programming forums, part of the Software Development category; Hui Can anyone tell me what is an argument ? differentiate between formal arguments and actual arguments?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-13-2007, 11:56 PM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Question differentiate between formal arguments and actual arguments

Hui

Can anyone tell me what is an argument ? differentiate between formal arguments and actual arguments?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2007, 06:35 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Post Re: differentiate between formal arguments and actual arguments

Hi

void main(){
x = sum(2,3);
}
int sum(int a,int b){
return a+b
}

in the above example 2 & 3 are called actual arguments,
a & b are called formal argumets

value given to function parameter is called argument
__________________
SeeSamJagan
- Sky is not the "LIMIT", Death is not the END, There is still something beyond....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-14-2007, 06:38 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Default Re: differentiate between formal arguments and actual arguments

Formal arguments are nothing but a copy of the original(actual) arguments

value supplied in the calling function is called actual argument

value supplied in the called function is called formal argument
__________________
SeeSamJagan
- Sky is not the "LIMIT", Death is not the END, There is still something beyond....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is asp.net an actual programming language? preet ASP and ASP.NET Programming 3 04-06-2008 11:31 PM
Formal verification method Shanthi Software Testing 0 01-14-2008 04:31 AM
How do I read command-line arguments with Perl? leoraja8 Perl 3 11-26-2007 06:43 AM
How do I access command-line arguments? prasath C and C++ Programming 1 08-17-2007 11:46 PM
How do I read command-line arguments with Perl? sivaramakrishnan Perl 1 07-23-2007 04:50 AM


All times are GMT -7. The time now is 01:07 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0