Actually u r right that its printing tab, when I changed 9 to 38 it printed "&". Also this
cout << "(" << char(9) << ")\n"; is printing tab or & but not 9.


Why I need is number to character is , because there is a function char * getbaserep( int number , int base)

I need this number to string conversion for this above function that takes a number and return it in a particular base,

I am able to code the function, but the number its returning has to be converted to string as the return type of the function 'getbaserep' is char*.

Morover I am doing it character by character, because if the base representation calculated is 01011 . than it should actually return reverse of it 11010.

So any idea how to convet a number to string form.

thank you