In this video we examine integers and basic math operations along with the printf() function.
Regarding the various sizes of integers, you can always determine the number of bytes an item uses by applying the sizeof() function. sizeof() will return the number of bytes used by the item in question. For example, sizeof(x) will tell how many bytes are required for variable X, regardless of how it was declared. This is how you can determine whether or "vanilla int" is 2 bytes or 4 bytes.
Text Reference (Embedded Controllers Using C and Arduino): Chapters 3 and 5.
My free texts and lab manuals are available for download at my college web site https://www.mvcc.edu/jfiore and at my personal site http://www.dissidents.com
Inexpensive print and kindle copies are available at Amazon https://www.amazon.com/author/jimfiore
If you like my texts and videos, and would like to help defray the costs of making and maintaining them, consider making a modest donation at https://www.buymeacoffee.com/Professo...