0
What does #define array_size(a) sizeof(a)/size(a[0]) mean?
2 Answers
+ 2
sizeof (a) gives you a size in bytes of full array. sizeof (a[0]) gives you the size in bytes of its first item. And to find out the size of array (how many items) you use the division operator. This is what macro does. It is used to find out the size of array in compile time.
0
Hey thnx man