COMMON PROGRAMMING ERRORS - ARRAY
COMMON PROGRAMMING ERRORS - ARRAY
- Declaring an array without specifying any value as size of array.
- Declaring an array taking variable n as size of array. C does not allow a variable length array.
- Initializing more values than the specified size.
- Accessing array elements beyond the range limits.
- Array elements are to be used from 0 to maxsize-1.
- C does not report any error if user tries to access elements beyond this range but some garbage value is printed.
- Declaring array of type void.
Share this