A few days ago
Anonymous

how to convert binary/octal/hexa to numeric/decimal using turbo c??

how to convert binary/octal/hexa to numeric/decimal using turbo c??

Top 1 Answers
A few days ago
Mika

Favorite Answer

Suppose you have an int variable

int i;

and you print it out using printf:

printf(“%d\n”, i);

Now, as you probably know, printf can also print things out in base 8 and base 16. So we could also write

printf(“%o\n”, i);

or

printf(“%x\n”, i);

0