C compiler with embedded metalanguage.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

48 lignes
396 B

int
zero()
{
return 0;
}
int
one()
{
return 1;
}
int
main()
{
int x;
int y;
x = zero();
y = ++x;
if (x != 1)
return 1;
if (y != 1)
return 1;
x = one();
y = --x;
if (x != 0)
return 1;
if (y != 0)
return 1;
x = zero();
y = x++;
if (x != 1)
return 1;
if (y != 0)
return 1;
x = one();
y = x--;
if (x != 0)
return 1;
if (y != 1)
return 1;
return 0;
}