1.

What is the maximum number of arguments for the constrain() function?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in a national level competition.This question is from Mathematical Functions in section Arduino Programming of Arduino

Answer»

The correct answer is (c) 3

For EXPLANATION: The constrain() FUNCTION is used to restrict the output from going below or above a certain minimum or maximum number respectively. It takes THREE ARGUMENTS; the number to be contrained, the minimum value, and the maximum value.



Discussion

No Comment Found

Related InterviewSolutions