Qualcomm Interview Question
Software Engineer / DevelopersOr you can exploit the fact that size of array is stored at (array -1)............Thats how compiler come to know the size of array when it has to delete memory........
This particular post made me laugh.
This whole thread is crazy. It is filed under Algorithm!, and the language is not specified.
None of you get the job. At least find out which language is being talked about...
sizeof(array)/sizeof(array[0])
- Altruist December 15, 2009