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 1. Getting Started: Essential Ob... > Displaying Values in Variables

Displaying Values in Variables

The capability to display the values stored in variables with the Objective-C built-in printf() function is very useful. In the previous task, you saw that the code %i is a placeholder for integer variables:

printf ("The amount in your account is
  $%i\n", amount);


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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