+ 1

I want example for passes the values between the methods in C#

17th May 2017, 2:29 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
5 Answers
+ 1
public int testMethod(int param) { return param; } public void driver() { int x = 5 + testMethod(5); } //What is the value of x when the method //called driver executes?
18th May 2017, 5:09 PM
trevor villanueva
trevor villanueva - avatar
+ 1
Do you mean Arguments or return types?
18th May 2017, 11:49 AM
trevor villanueva
trevor villanueva - avatar
+ 1
I hope this helps. if you know the value of x when the code executes you have a good idea of how passing arguments and return types work. Ask if you have any specific questions.
18th May 2017, 5:15 PM
trevor villanueva
trevor villanueva - avatar
0
both
18th May 2017, 4:36 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
0
thanks
18th May 2017, 5:16 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar