34. EEPROM Programming- Arduino

Question.6

What will be the output after running the following code on an Arduino with a Factory-Fresh EEPROM?

#include <EEPROM.h>

void setup() {
  Serial.begin(9600);
  int address = 0;
  byte val = EEPROM.read(address);
  Serial.println(val);
  EEPROM.write(address, 0);
  val = EEPROM.read(address);
  Serial.println(val);
}

void loop() {
  // Empty loop
}

Select Answer