CODE :
int *Array[8];
Array[0] = (int *) malloc(sizeof(int) * 5);
printf("%d" , sizeof(Array)/sizeof(int)); // Result = 8 : True
printf("%d" , sizeof(Array[0])/sizeof(int)); // Result = 1 : False
How do I get length of Array[0] that is 5?
You can’t.
Dynamic arrays in C don’t carry around their length information with them. So you’ll need to write your code to remember that it allocated something of length 5.