1.

What is the return type for the shiftOut() function?(a) double(b) null(c) long(d) intI have been asked this question in final exam.I want to ask this question from Advanced Input Output in section Arduino Programming of Arduino

Answer»

Right option is (b) null

The BEST I can explain: The shiftOut() FUNCTION takes a byte of data as input and shifts the data bit by bit out to an output pin by either moving from left to right or vice VERSA. So, it does provide us an output, HOWEVER that output is directly UPDATED to the pin, and not sent back as a return value.



Discussion

No Comment Found

Related InterviewSolutions