What is the output of the program given below if a voltage of 5V is supplied to the pin corresponding to the A0 pin on an Arduino UNO?
A. null
B. Error
C. 0
D. 1024
Code:
void setup() {
Serial.begin(9600);
pinMode(A0, INPUT);
}
void loop() {
int s = analogRead(A0);
Serial.println(s);
}
B. Error
C. 0
D. 1024