Phonetics Sensaphone ISACC 5000 Manuale Utente

Pagina di 143
86
Sensaphone
®
 ISACC Instruction Manual
C LANGUAGE KEYWORDS
The following is a list of all valid components of the C language within ISACC.
char
int
if
else
for
do
while
operators
assignment
comparators
comments
functions
CHAR
 - used to define a variable as a character.  A character can hold a value from -128 to
+127 and must be a whole number.  Exceeding this range will cause incorrect results.
Example:
char x;
main()
  {
  x = 12;
  }
INT 
- used to define a variable as an integer.  An integer can hold a value from -32,768 to
+32,767 and must be a whole number.  Exceeding this range will cause incorrect results.
Example:
int result;
main()
  {
  result = 17;
  }
IF
 - Used to make decisions.
Example:
main()
{
if (input(1)>7)
{
puts(“One is bigger\n”);
}
}