I'm trying to get to grips with malloc however the sizeof function - no matter what I do, always returns 4. Can someone explain to me what is up?
Code:#include <stdlib.h> #include <stdio.h> int main() { int *ptr = malloc(sizeof(int) * 10); int len = sizeof(ptr); printf("Len: %i\n", len); }