segunda-feira, 7 de dezembro de 2009

Simple is nice

How to guess how many element you have in an array, without know
the type of data in the array

Simple
#define SIZEOFAR(ar) (sizeof ar / sizeof ar[0])

Nenhum comentário:

Postar um comentário