Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Variables: The Holders of Information

Chapter 2. Variables: The Holders of Information

In this chapter, you will learn about variables, which are used to hold data. Since we use computers primarily to manipulate data, we need to begin the study of programming with learning about variables. We will examine the different kinds of data and how variables are classified according to the data they hold. Once you understand variables, you can begin to learn about programming statements, which are the fundamental building blocks of programs. The first statement we will examine is the assignment statement, which allows you to store data into a variable. I’ll cover the topic of variables as necessary holders for data. You’ll examine variables by their types—that is, what kind of data they are intended to hold. I’ll define programming statements, the necessary building blocks of programs. Next I’ll cover how to introduce a variable into a program: variable declaration. Finally the topic of loading variables with data will be covered—how the variable is assigned its data.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint