Compare commits
2 Commits
6fa59dd89f
...
b880a2ba78
Author | SHA1 | Date |
---|---|---|
Alexander Popov | b880a2ba78 | |
Alexander Popov | d6103313ae |
|
@ -15,6 +15,7 @@ void setup() {
|
|||
double example_double;
|
||||
char example_char;
|
||||
char * example_string;
|
||||
bool example_bool;
|
||||
|
||||
size_variable = sizeof(example_int);
|
||||
Serial.print("int bytes size: " );
|
||||
|
@ -47,8 +48,26 @@ void setup() {
|
|||
size_variable = sizeof(example_string);
|
||||
Serial.print("char * bytes size: " );
|
||||
Serial.println(size_variable);
|
||||
|
||||
size_variable = sizeof(example_bool);
|
||||
Serial.print("bool bytes size: " );
|
||||
Serial.println(size_variable);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Arduino Nano
|
||||
*
|
||||
* int bytes size: 2
|
||||
* unsigned int bytes size: 2
|
||||
* signed int bytes size: 2
|
||||
* unsigned long bytes size: 4
|
||||
* float bytes size: 4
|
||||
* double bytes size: 4
|
||||
* char bytes size: 1
|
||||
* char * bytes size: 2
|
||||
* bool bytes size: 1
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue