Raja posted:
IS there any inbuilt decimal to binary conversion function in C++
Well... all computers store data in binary.
As such I pressume you're talking about strings, ie.
"23" -> "00010111"
Maybe something along the lines of:
#include <stdlib.h>
int main(void)
{
char binary_string[10];
unsigned short int number = 23;
itoa(number,binary_string,2);
//The 2 in the above specifies the radix, ie. the number of digits
//in the number system. For decimal, this would be 10. For, octal, 8.
//For Hexadecimal, 16. For binary, 2.
}
-JKop