Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

char

   
Examples  
char m;      // Declare variable "m" of type char 
m = 'A';     // Assign "m" the value "A" 
int n = '&'; // Declare variable "n" and assign it the value "&" 

Description   Datatype for characters, typographic symbols such as A, d, and $. A char stores letters and symbols in the Unicode format, a coding system developed to support a variety of world languages. Each char is two bytes (16 bits) in length and is distinguished by surrounding it with single quotes. Character escapes may also stored as a char. For example, the representation for the "delete" key is '\377'.
   
Syntax  
char var
char var = value
   
Parameters  
var   variable name referencing the value

value   any character

   
Usage   Web & Application
   
Related   String
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas