c - How can I get the number of elements in an unsigned char* array? -
i have function takes in pointers different arrays can this:
unsigned char *arr[] = {0x34, 0x10, 0x3f, 0x00, 0x00 } i want know how many elements (bytes) in each array function getting. example, need way find array has 5 bytes. pass function print values of array. sizeof(arr) doesn't give me right results.
this c. , in c not exist. have somewhere remember /store number of elements.
c
No comments:
Post a Comment