#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
void app_main() {
//which pointer it calls is based on their location
int x = 5, y = 8;
int *ptr;
ptr = &x;
printf("%d\n", *ptr);
ptr = &y;
printf("%d\n", *ptr);
*ptr = 7;
printf("%d\n", *ptr);
*ptr = 2;
printf("%d\n", *ptr);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
//when you define ptr again like on line 12 it overrides any lower than it, in this case y