•int
array[SIZE];
•
•// using indexes
•for
(int i = 0; i < SIZE; ++i)
• array[i] = 0;
•
•for (int i
= 0; i < sizeof(array)/sizeof(array[0]); ++i)
• array[i] = 0;
•
•//
using pointers
•int
*pElement = array;
•pElement
= &array[0];
•
•int
*pNextToLastElement = array+SIZE;
•pNextToLastElement
= &array[SIZE];
•
•for
(; pElement != pNextToLastElement; ++pElement)
• *pElement = 0;
•
•