What are integer literals?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What are integer literals?

Rating:

Numeric values having no decimal parts are called integer literals. These values can be expressed in decimal, octal, and hexadecimal forms. By default, integer literals are in decimal form. The decimal form contains a sequence of decimal digits (0 to 9), the octal form contains a sequence of octal digits (0 to 7) prefixed by 0 (zero), whereas the hexadecimal form contains a sequence of hexadecimal digits (0 to 9, a to f) prefixed by 0x or 0X. In the hexadecimal form, the characters (a to f) may be in uppercase or lowercase.

By default, integer literals are 32-bit values. In order to indicate a 64-bit long value, the character L (either in uppercase or lower case) is appended to the literal.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.