Can the analogRead() function be used as a replacement for the digitalRead() function?
(a) No, it cannot be used
(b) Yes, it can be used but only on certain Arduino Boards
(c) Yes, it can be used
(d) Yes, it can be used but only for certain pins
I had been asked this question during an internship interview.
Origin of the question is Digital Input Output in section Arduino Programming of Arduino