CHAPTER 3
Arduino C Data Types
Arduino C supports most of ANSI C’s data types with a few notable exceptions. Also, there’s a little hanky-panky going on with floating point numbers, but it shouldn’t be a problem as long as you are aware of what’s going on “under the hood.”
As mentioned in Chapter 2, a variable is little more than a chunk of memory that has been given a name. When you define a variable, you must also tell the compiler what type of data is to be associated with that variable. The data type of the variable is important because it determines how many bytes of memory are dedicated to that variable, and what kind of data can be stored ...
Get Beginning C for Arduino: Learn C Programming for the Arduino and Compatible Microcontrollers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.