What is the return type of the pulseIn() function?

What is the return type of the pulseIn() function?
A. null
B. signed byte
C. unsigned long
D. unsigned int
 
Answer: C
Explanation: The job of the pulseIn() function is to calculate the time difference (in microseconds) between two digital pulses. It gives the value as output in the form of an unsigned long variable. This is done so as to improve the accuracy of the function when measuring the time gap.
 

Tìm kiếm

Back
Top