Lol. It works in MSVC 6.0. Yea, I know. It's outdated. Check out some code that runs with flying colors in MSVC 6.0. I apologize in advance for casting malloc.
[edit]Ye Old Popular Search Engine[/edit]Code:#include <stdio.h> #include <stdlib.h> #include <malloc.h> int main() { int *lpArray = (int*)malloc(sizeof(lpArray) * 101); size_t sizeArray = _msize(lpArray) / sizeof(lpArray); printf("lpArray has a size of %d.\n", sizeArray); return 0; }



