O'Reilly logo

Beginning C for Arduino: Learn C Programming for the Arduino and Compatible Microcontrollers by Jack Purdum

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

images

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required