I was using it in a function which gave me 1, and the way I posted gave me 1, but if I do this:
Is there any way to use it in a function?Code:cout << sizeof(arr) << "/" << sizeof(int) << "=" << sizeof(arr) / sizeof(int) << endl;
|
Results 1 to 6 of 6
Thread: Length of arrayThreaded View
|
Click Here to Expand Forum to Full Width |