58. Serial Data Manupulation

Question.2

What is the value of the variable val1? ( after executing the following code )

void setup() {
  Serial.begin(115200);
  Serial.println("EW3.14");
}

void loop() {
  if (Serial.available() > 0) {
    int val1 = Serial.parseInt();
  }
  while (1);
}


 

Select Answer