O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

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 4. Data Types and Variables

The aim of this chapter is to present the concept of data types and variables in C programming.

After you read this chapter, you should be able to grasp the basic ideas behind data modeling, translating real-world items into a C representation. It is a skill that takes some time to master, but that’s essential to programming in any language.

Because C is a strongly typed language, it is very important to remember that data types are vital to the correct working of a program. Luckily, this works to your advantage as far as basic correctness of the program is concerned, because the compiler will indicate areas where it detects a possible type conflict. In the worst cases, the program will not compile at all. ...

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