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.
 
 

20 lignes
344 B

// invalid-pointer
#include <stdio.h>
#include <stdint.h>
int main() {
int i, *ptr;
ptr = &i;
printf("%p\n",ptr);
*ptr = 42; // legal memory access
printf("%d\n", *ptr);
ptr = (int *)(intptr_t)0xDeadD0d0;
printf("%p\n",ptr);
*ptr = 42; // illegal memory access
printf("%d\n", *ptr);
return 0;
}