If the array was declared as int array[100];

then sizeof operator will give you the size of that array. then length can
found as
length = sizeof(array)/sizeof(int);
if the array was declared dynamic then you can not find the length of that
array.

Naveen

On Mon, Jan 28, 2013 at 3:44 PM, Anil Sharma <[email protected]>wrote:

> How to calculate the size/lenght of an int array which is passed as an
> ONLY argument to a function???....
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to