Originally Posted by Jams View Post
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));

Last edited by SaswatPadhi; 16Apr2010 at 11:08.. Reason: Missing CODE tag