in reply to Re^7: Static typing is mostly a waste of time
in thread Static typing is mostly a waste of time
#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. }
|
|---|