Hey,
this is my code
where number is an integer.Code:for (k = 1; k < 15; k++) { /*convert to binary*/
putchar(number & displayMask ? '1' : '0');
number <<= 1;
}
now this would display the binary form of number to stdout.
How would I assign that value to a string instead of displaying it?
thanks