hello.
i know i can use printf( "\xHH" ); to print an ascII character, in HH hex number.
But, how can i do it using a number in decimal format? something like that: printf( "\DDD" ); and DDD is a decimal number.
Regards
Thanks
hello.
i know i can use printf( "\xHH" ); to print an ascII character, in HH hex number.
But, how can i do it using a number in decimal format? something like that: printf( "\DDD" ); and DDD is a decimal number.
Regards
Thanks
You can't. You can do it in octal, but not in decimal. Just convert the decimal to hexadecimal in your head and use the \x notation.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Didn't you post the same question in the C forum?
http://cboard.cprogramming.com/showthread.php?t=103422
And don't copy/paste the same question over many forums / threads.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.