Add sizeof test
This commit is contained in:
parent
12c82944cc
commit
11608c4dcf
1 changed files with 16 additions and 0 deletions
16
SizeOfTest/SizeOfTest.ino
Normal file
16
SizeOfTest/SizeOfTest.ino
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
void setup() {
|
||||||
|
Serial.begin(9600);
|
||||||
|
|
||||||
|
Serial.print("Size of int: ");
|
||||||
|
Serial.println(sizeof(int));
|
||||||
|
|
||||||
|
Serial.print("Size of float: ");
|
||||||
|
Serial.println(sizeof(float));
|
||||||
|
|
||||||
|
Serial.print("Size of bool: ");
|
||||||
|
Serial.println(sizeof(bool));
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue