Thread
:
Decimal to Hexadecimal Conversion in C..
View Single Post
anishsina
Newbie Member
5Jul2012,21:11
#include<stdio.h>
#include<conio.h>
main
{
clrscr();
int a=42;
printf("%x",a);
// to obtain octa decimal number use "%o" instead of "%x"
getch();
}
o/p: 2a