Hi I just learned bitshifts and I was wondering whether it is possible to read bits and to convert them into a string. Regards Jamil
This takes 12 in dec, 2 is the base to be used (binary) and is then stored in the str array. Code: int main(void) { char str[4]; printf("12 to binary is %s\n",itoa(12,str,2)); return(0); }