Subset of C language with tree interpreter and bytecode compiler + VM.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

18 řádky
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;
}