-
How to know the size of array [] in CComputer/linux 2008. 4. 23. 21:42
int sz, array[] = {1,2,3,4,5};
sz = sizeof(array)/sizeof(int);
for(i = 0;i < sz; i++ ) {..................}const char *const canvas_type[6] =
{
"A", "B", "C", "D", "E", "F"
};
int sz = sizeof(canvas_type)/sizeof(char*);
With 64 bit AMD machine, the above mathod has a compiled problem.'Computer > linux' 카테고리의 다른 글
Simple firewall program - Firestarter (0) 2008.04.26 How to empty out the trash bin with the wrong permission. (0) 2008.04.23 How to install a new latex style file in the local directory (ubuntu) (0) 2008.04.17