經安全檢測,此網站為安全網站,請放心前往原始網址!

Array length - C / C++

If I dynamically allocate memory to a pointer, then is it possible to see afterwards what is the memory size the pointer is looking at. e.g int SIZE = 10; int *a = malloc(SIZE*sizeof(int)); printf("Size : %d", sizeof(a)); this actually gives me 4 bytes, w

bytes.com

網址安全性掃描由 google 提供