I've got an array which hold pointers to other arrays. I want to print all the values but i can't get the sizeof of the specific array. What am I doing wrong?
int main(void){
int i, j;
float T1[4]={1.1, 1.2, 1.3, 1.4};
float T2[6]={2.1, 2.2, 2.3, 2.4, 2.5, 2.6};
float T3[3]={3.1, 3.2, 3.3};
float T4[2]={4.1, 4.2};
float T5[4]={5.1, 5.2, 5.3, 5.4};
float *TAB[5]={T1, T2, T3, T4, T5};
for(i=0; i<5; i++){
for(j=0; j<sizeof(TAB[i])/(sizeof (int)); j++){
printf("%f ", *(TAB[i]+j));
}
}
printf("\n");
}