【C】利用sizeof取得陣列數量


static tU1 list[][8] = { "how", "are", "you" };
#define NUM_OF_LIST sizeof(list) / sizeof(list[0])
 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com