#include <stdio.h> int main() { int arr[] = {1,2,3,4,5}; int length = sizeof(arr)/sizeof(int); printf("%d\n",length); getchar(); }