I'm looking to convert an integer representation of binary into a string. i'm not allowed to use bitwise operations. when i converted the decimal integer value into that integer binary representation, i could've put the digits in a string and reverse, but i'm searching for a more elegant way.
Any ideas?
int a = 5, the value ofais viewed as101. unless you provide an example, this question is not clear.fiveis the same as0b101in binary, or5in decimal).