Hi,
I tried the following code:
It gives 4 as result instead 80. As I see in this case the "t" variable behaves like a pointer. My question is: how can I get the real size(80) of the input array?
Thanks
Arepi
I tried the following code:
Code:
void SizeArray(int t[]){
cout << "Size of the input array: " << sizeof(t) << endl;
}
void main(void){
int arr[20];
SizeArray(arr);
}
Thanks
Arepi
Comment