Quote:
Originally Posted by Jams
How would someone go about doing it?
This takes 12 in dec, 2 is the base to be used (binary) and is then stored in the str array.
Code: CPP
int main(void)
{
char str[4];
printf("12 to binary is %s\n",itoa(12,str,2));
return(0);
}