UMBC CMSC201, Computer Science I, Fall 1994 Sections 0101, 0102 and Honors

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 15 09:09:53 EDT 1994

Richard Chang, chang@gl.umbc.edu