Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition
by Robert Clair
2. More about C Variables
When you write a program in most common scripting languages, you rarely have to spend much time thinking about variables. You create variables just by using them, and you don’t have to worry about what happens to your variables when you are finished with them. The language’s interpreter takes care of all the details for you.
When you code in a compiled language, life is not so simple. You must declare any variables that you use in your program by telling the compiler the type and name of each variable. The compiler then looks at the declared type of the variable, reserves the appropriate number of bytes, and associates the variable name with those bytes.
In this chapter we’ll look at the form of variable declarations ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access