Home Tutorial Iphone Examples Nslog NSLog Integer Example

 
 

NSLog Integer Example
Posted on: July 29, 2009 at 12:00 AM
Advertisement
In this code example you will see how to print the value of int variable.

Here is the code example of NSLog function that prints the value of integer.

int num=90;

NSLog(@"The value of integer num is %i", num);


The above code will print the value of num variable. If you run the code you will get the following output:

The value of integer num is 90

Using above code you can display the value of int variables.

 

Advertisement

Related Tags for NSLog Integer Example:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 29, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com