adplus-dvertising
frame-decoration

Question

Consider the below function. Let a, b be two non-negative integers.
The call find{ a, find(a, b)} can be used to find the
find ( int x, int y)
 {
 return (( x < y ) ? 0 : ( x - y ));
 }

a.

maximum of a, b

b.

positive difference of a, b

c.

sum of a, b

d.

minimum of a, b

Posted under C Programming

Answer: (d).minimum of a, b

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the below function. Let a, b be two non-negative integers. The call find{ a, find(a, b)} can be used to find the

Similar Questions

Discover Related MCQs

Q. Let a, b be two non-negative integers. Which of the following calls, finds the positive difference of a and b ?

Q. Pick the correct statements

Q. max is a function that returns the larger of the two integers, given as arguments. Which of the following statements finds the largest of three given numbers?

Q. Forward declaration is absolutely necessary

Q. void can be used

Q. Feature for accessing a variable through its address is desireable because

Q. It is not advisable to use macros instead of functions because

Q. Which of the following is/are syntactically correct?

Q. Use of macro instead of function is recommended

Q. Which of the following is not a primitive recursive but partially recursive?

Q. Pick the correct statements.

I. The body of a function should have only one return statement
II. The body of a function may have many return statements.
III. function can return only one value to the calling environment.
IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

Q. How many type of conversion are there in C?

Q. Which conversion also called Automatic Type Conversion?

Q. In Implicit type conversion, If an operand of long int is present then the other operand will be converted to

Q. In Implicit type conversion, If an operand of type long double is present in the expression, then the corresponding operand will also be converted to

Q. Which type of conversion is NOT accepted?

Q. The process in which a function calls itself directly or indirectly is called

Q. A function fun is called __________ if it calls the same function fun.

Q. Which of the following is not an example of recursion?

Q. When any function is called from main(), the memory is allocated to it on the stack.