1.

What is the use of the sqrt() function?(a) To find the square of a number(b) To find the square root of a number(c) To find the cube root of a number(d) To find the cube of a numberThe question was posed to me in an interview.Question is taken from Mathematical Functions in section Arduino Programming of Arduino

Answer»

Right answer is (b) To find the SQUARE root of a number

The best explanation: The sqrt() function is used to find the square root of a number. It takes ONE argument; the number whose square root is to be FOUND out. This function can accept any number-based datatypes and GIVES the output in the double datatype.



Discussion

No Comment Found

Related InterviewSolutions