UMBC CMSC201, Computer Science I

Other Constants


Examples of character constants

   'a'

   '0'

Examples of string constants

   "Hello World"

   "Minas Tirith"

   ""               /* empty string     */

   "    "           /* string of spaces */

   /* "This is a comment" */

Examples of Boolean constants

   TRUE

   FALSE

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

Richard Chang, chang@gl.umbc.edu