Subset of C language with tree interpreter and bytecode compiler + VM.
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.
|
// pointer-compare
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
int array[5] = {0, 1, 2, 3, 4};
|
|
int brray[5] = {0, 1, 2, 3, 4};
|
|
int *p = array + 2;
|
|
int *q = array + 4;
|
|
int *r = brray + 4;
|
|
if (p > q) abort();
|
|
if (p > r) abort(); // illegal comparison
|
|
return 0;
|
|
}
|