Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Need help with my C++ code
Re: Need help with my C++ code [message #445313 is a reply to message #445206] Sat, 26 March 2011 17:31 Go to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
AFAIK 'arguments' is the same as 'actual parameters' so I''l be using that in my story Wink

Formal parameters are the parameters you define in your function prototype or definition.
Actual parameters are the parameters you supply to the function.

For instance:
void someFunction(int a); //'a' is a formal parameter

void main()
{
    int a = 1;
    someFunction(a); //'a' is a actual parameter
}


When an actual parameter is of a lower type (eg the formal parameter is a long and the actual parameter an int) it will be automatically converted.
The other way around requires you to typecast Wink


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Sat, 26 March 2011 17:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need help with php
Next Topic: Is it possible to replace the CPU Fans on laptops?
Goto Forum:
  


Current Time: Sat May 11 23:32:35 MST 2024

Total time taken to generate the page: 0.00765 seconds