Index
 
  Reference for Wiring 1.0 (ALPHA) 0017+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
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'. The char type is signed so it encodes numbers from -128 to 127.

문자와 기호의 데이터 형 입니다. char 는 문자와 심볼을 유니코드 방식으로 저장합니다. 각 char 는 2 바이트(16비트)의 길이를 가지며 싱글따옴표로 쌓여집니다. 문자 escape도 char 에 저장 할 수 있습니다. 예를들어 "delete" 키는 '\377'이 됩니다. char 형은 부호가 사용되므로 -128 에서 127 까지 입니다. 

   
Syntax  
char var
char var = value
   
Parameters  
var   variable name referencing the value
값을 참조하는 변수 이름
value   any character

모든 문자
   
Returns  
   
Usage   Application
   
Related   unsigned char
byte
array