Subset of C language with tree interpreter and bytecode compiler + VM.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

20 行
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;
}