1.

What is the return type of the micros() function?(a) Signed Long(b) Signed Int(c) Unsigned Long(d) Unsigned IntThis question was posed to me in an interview for internship.Question is from Time Functions in chapter Arduino Programming of Arduino

Answer»

Right choice is (c) UNSIGNED Long

Explanation: The micros() function gives the up-time or the time since the Arduino STARTED to run the program. The RETURN TYPE here is unsigned long, which means basically a number of the long datatype WITHOUT any plus or minus signs. This number denotes the up-time in microseconds.



Discussion

No Comment Found

Related InterviewSolutions