Thursday, July 30, 2009

In turbo c how can i make a program about conversion?

conversion in hexadecimal,decimal,octal,and binary numbers. Also how can i make a program about sorting of strings

In turbo c how can i make a program about conversion?
Conversion in Hexamdecimal





Decimal Printf("%d",%26amp;num)


HexaDecimal Printf("%0x",%26amp;num)


OCTAL - Printf("%o",%26amp;num)
Reply:You can use strcmp() to compare strings. It is a standard function. Then you could use the sorting algorithm of your choice. Try the selection or bubble sort to start.


No comments:

Post a Comment