77. Sleep Modes Operation

Question.1

What will be the state of the GPIO pin 4? (after uploading and executing the following code in Arduino UNO)

Code:

#include <avr/sleep.h>

#define GPIO_PIN 4

void setup() {
  pinMode(GPIO_PIN, OUTPUT);
  digitalWrite(GPIO_PIN, HIGH);
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);
  sleep_enable();
  sleep_mode();
}

void loop() {
  digitalWrite(GPIO_PIN, LOW);
}

Select Answer