Working with arrays

I was wondering if anyone can help me with finding information on arrays?

I am trying to find out the following:

1. Using the array name, ARRAY, calculate the NUMBER OF BYTES IN ONE ELEMENT
2. Calculate the NUMBER OF BYTES IN ONE ELEMENT using the data type
3. Calculate the total number of bytes in the entire array

If any one can help me I would appreciate it.
Thank you,
R.

My array is:

 
  long  ARRAY [100];
1. sizeof(ARRAY[0]); //or whatever element you want
2. sizeof(long); // or whatever data type it is
3. sizeof(ARRAY); //the whole array
Thanks for the quick response. I tried the first two earlier by had no luck. After looking at your examples I was able to fix my error. Thanks again for your help!

R.
Of course, glad I could help.
Topic archived. No new replies allowed.