arduino/SizeOfTest/SizeOfTest.ino

20 lines
331 B
Arduino
Raw Normal View History

2018-07-06 16:18:47 +00:00
void setup() {
Serial.begin(9600);
Serial.print("Size of int: ");
Serial.println(sizeof(int));
2018-08-19 14:09:25 +00:00
Serial.print("Size of long: ");
Serial.println(sizeof(long));
2018-07-06 16:18:47 +00:00
Serial.print("Size of float: ");
Serial.println(sizeof(float));
Serial.print("Size of bool: ");
Serial.println(sizeof(bool));
}
void loop() {
}