Given:
x = MyFunc(2);
My understanding:
The variable x is assigned to the function MyFunc(2).
First, MyFunc( ) is called. When it returns, its return value if any, is assigned to x.?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This cannot be answered completely without:
But your sentence “When MyFunc(2) is called it returns the value 2 to x” is wrong. MyFunc is invoked and 2 is passed as the actual parameter value. MyFunc may return anything, which is then assigned to x.