經安全檢測,此網站為安全網站,請放心前往原始網址!

How to get the length of array in C? is "sizeof" is one of the solution? - Stack Overflow

... Sizeof an array in the C programming language? Why does a C-Array have a wrong sizeof() value ... { int arr[]={1,2,3,4,5}; clrscr(); printf("Length: %d\n",sizeof(arr)); printf("Length: %d\n",sizeof(arr)/sizeof(int)); show(arr); getch(); } void

stackoverflow.com

網址安全性掃描由 google 提供