MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the functionfind ( int x, int y){return (( x < y )? 0:( x-y ));}Let a, b be two non-negative integers.The call find(a, find(a, b)) can be used to find the
A
positive difference of a, b
B
maximum of a, b
C
minimum of a, b
D
sum of a, b
Explanation: 

Detailed explanation-1: -The function f(x, y) returns the SMALLEST VALUE between x and y. Explanation : f(int x, int y) is the function, where x and y are the parameters of integer type passed during the function call.

Detailed explanation-2: -Explanation: True, The default return type for a function is int.

There is 1 question to complete.