#include<stdio.h> main() { char scalar; void *tmp; char *arr = "abcde"; scalar = arr; //convert array to scalar tmp = scalar; arr = tmp; //convert scalar back to array to see if we can //retrieve the original array in any way printf("%s\n",arr); //Whoops, Segfault. Can't reconsitute. }
In reply to Re^8: Static typing is mostly a waste of time
by Anonymous Monk
in thread Static typing is mostly a waste of time
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |