What are the results(the output) for each of the following function calls given
ID: 3771312 • Letter: W
Question
What are the results(the output) for each of the following function calls given the inputs as shown and the function as defined below? Try_me_too[0, -10]: right arrow try_me_too[-5, -4]: right arrow try_me_too[10, 1]: right arrow try_me_too[-99, -100]: right arrow try_me_too[0, 0]: right arrow Void try_me_too( int in1. int in2) { if (in1 >= in2) {print f("A"): } if (in1> in2 && in1 = in2) {printf("B"): } if ( in1 !=in2) {printf("C"): } if ( in1 in2) {printf("D"): } What value does the function return for each of the follwoing given the inputs as shown and the function as defined below? a= try_this (-999): right arrow b= try_this(5): right arrow c= try_this(2): right arrow d= try_this(0): right arrow e=try_this(-1): right arrow int try_this(int in2) { int i = 3: int out2 = -10: for (i=-100: iExplanation / Answer
F1:
try_me_too(0,-10) Output-> ACD
try_me_too(-5,-4) Output-> CD
try_me_too(10,1) Output-> ACD
try_me_too(-99,-100) Output-> ACD
try_me_too(0,0) Output-> A
F2:
try_this(-9999); output-> -100
try_this(5); output-> 5
try_this(2); output-> 2
try_this(0); output-> 0
try_this(-1); output-> -1
F3:
a = 0
b = 3
c = -3
d = 21
e = 10
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.