57. Arduino UART Programming

Question.2

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

void setup() {
  Serial.begin(115200);
  Serial.println("Hello EW! Hello again EW!");
}
void loop() {
  if (Serial.available() > 0) {
    int val = Serial.find("EpW");
    int val2 = Serial.find("EW");
  }
  while(1);
}


 

Select Answer