A place for all the arduino code I write.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
425 B

#include <Arduino.h>
struct Test {
uint32_t a;
char b;
};
Test global_var;
void setup() {
Serial.begin(115200);
Test stack;
Test* heap = new Test();
Serial.print(F("Stack location: "));
Serial.println((uint32_t)(&stack), DEC);
Serial.print(F("Heap location: "));
Serial.println((uint32_t)heap, DEC);
Serial.print(F("Global location: "));
Serial.println((uint32_t)&global_var, DEC);
}
void loop() {
}