56. Arduino UART Functions

Question.6

What will be printed on the Serial Monitor when the following code runs and a user inputs the string "Arduino"?


void setup() {
  Serial.begin(9600);
}
void loop() {
  if (Serial.available() > 0) {
    String input = Serial.readString();
    Serial.println("You entered: " + input);
  }
}

 

Select Answer