C PROGRAMMING please help with these thank you The program b

C++ PROGRAMMING, please help with these, thank you

The program below has particular declarations and definitions in its functions: it uses the passing value by reference logic. See the ampersands (&\'s) added to the variable type in each function. Without these &\'s the program would simply display the times and y values at the court (try it if you doubt it). Even though these are void functions, there is an output because the values are actually passed from one function to the other. What is the output? Briefly explain your answer of what happened in functions f_1 and f_2. What is the output of the following code? Explain why do you obtain this result?

Solution

Question 9:

Since x and y are different and a < b while calling function f2 swap function will be called

and the output will be

-11 9

Question 10:

since v = 0x39 = 57 which is char \'9\'

hence starting from character 9 till 1 output will be

99
88
77
66
55
44
33
22
11

C++ PROGRAMMING, please help with these, thank you The program below has particular declarations and definitions in its functions: it uses the passing value by

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site