I have an int array and I need to find the number of elements in it. I know it has something to do with sizeof but I\'m not sure how to use it exac
int
sizeof
i mostly found a easy way to execute the length of array inside a loop just like that
int array[] = {10, 20, 30, 40}; int i; for (i = 0; i < array[i]; i++) { printf("%d\n", array[i]); }