Subset of C language with tree interpreter and bytecode compiler + VM.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

18 wiersze
227 B

// dangling-pointer
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int *alloc() {
int i;
return &i;
}
int main() {
int *ptr = alloc();
assert(ptr != 0);
*ptr = 42;
printf("%d\n", *ptr);
return 0;
}