A program to compute word length of a machine#C语言Mar 30, 2015There is a program to compute word length of a machine as below. 12345678910111213141516171819#include <stdio.h> int wordlength(void); int main(){ printf("Word Length: %dn", wordlength()); return 0;} int wordlength(void){ int i; unsigned v = (unsigned)~0; for (i = 1; (v = v >> 1) > 0; ++i) ; return i;} Reference The C Programming Language