Re: pointers to functions
Let's allocate a mem for a string that also includes a space for the terminator null pointer and memset the allocation to nulls. Now use strncpy to copy a string of smaller size that the allocated space. Now because the space is pre-memset to nulls it is a valid instruction step. Most compilers would spew empty warning about it for no reason. Now if there is real memory address tracking embedded in the compilers even at a cost of pushing out entire virtualization of the physical memory to do such tracking and all during compile time then you should have a robust memory management system right from the compile time and not worry about during runtime.