Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please explain why is that so? What is the correct function call for row 11 - select A, B, C or D? 01:/* Sort two

please explain why is that so?image text in transcribed

What is the correct function call for row 11 - select A, B, C or D? 01:/* Sort two numbers */02: #include 03: void MinMax(int *Value1, int *Value2); 04: 05: int main(void) 06: {07: int a, b; 08: 09: printf("Enter two numbers and I will sort them for you:"); 10: scanf("%d%d", &a, &b); 11: 12: printf("%d, %d ", a, b); 13: 14: return 0; 15:} 16: 17: void MinMax(int *Value1, int *Value2) 18: {19: int tmp; 20: 21:/* If value 1 largest then swap values */22: if(*Value1>*Value2) 23: {24: tmp=*Value1; 25: *Value1=*Value2; 26: *Value2=tmp; 27:} 28:} MinMax(&a, &b); MinMax(*a, *b); MinMax(a, b); MinMax(a[], b[])

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the importance of respect for people in JIT.

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago