There is a programto compute word length of a machine as below.
#include <stdio.h>
int wordlength(void);
int main()
{
printf("Word Length: %d\n", wordlength());
return 0;
}
int wordlength(void)
{
int i;
unsigned v = (unsigned)~0;
for (i = 1; (v = v >> 1) > 0; ++i)
;
return i;
}