UMBC CMSC201, Computer Science I

Integer Constants


Examples of integer constants

   0

   77

These are not good integer constants

   1234567890  /* Legal, but might be too large */

   0123	       /* Legal, but in octal (base 8)  */	

   -49         /* Really an expression          */ 

   123.0       /* A floating point constant     */

Last Modified: Thu Sep 14 13:46:26 EDT 1995

Richard Chang, chang@gl.umbc.edu