using sizeof operator the size of whole array can be calculated, then divide it with the zise of the datatype(E.g. for int =4, char =2....etc.)
Example:
#define Narray (sizeof(array)/sizeof(array[0]))
Copyright © 2026 eLLeNow.com All Rights Reserved.