//*SWAP Pointers
 void SWAP(int* aa, int* bb)
  {
    int temp = *aa;
    *aa = *bb;
    *bb = temp;
  }

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");

  int a = 5;
  int b = 10;

//*SWAP Pointers
  SWAP(&a, &b); //The call is now looking for apointer to a variable and not the variable itself

  printf("BEFORE referencing   BEFORE SWAP a = %i | b = %i\n\n", a, b);

  printf("BEFORE referencing   AFTER  SWAP a = %i | b = %i\n\n", a, b);


  }

void loop() 
  {
  delay(10); // this speeds up the simulation


    delay(60000);

  }