Showing the length of mbed datatypes in bytes.

Dependencies:   mbed OptrexLCD

Files at this revision

API Documentation at this revision

Comitter:
Eduard
Date:
Sun Dec 05 12:14:51 2010 +0000
Parent:
0:124a3cf10d74
Commit message:
Also the \" bool\" type included now

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 29 23:14:17 2010 +0000
+++ b/main.cpp	Sun Dec 05 12:14:51 2010 +0000
@@ -31,6 +31,7 @@
         
         lcd.printf("sizeof(float)  == %d\n", sizeof(float));
         lcd.printf("sizeof(double) == %d\n", sizeof(double));
+        lcd.printf("sizeof(bool)   == %d\n", sizeof(bool));
         WaitRefres();
         
         lcd.printf("sizeof(long double)\n == %d\n", sizeof(long double));