C program for converting integer number to hex number

convert integer number to hex number in c
c program for sprintf
sprintf example in c

Program 1 :-

C program for converting integer number to hex number using function


Output:-

Enter a number
30
1e

Enter Integer number
1024
400

Program 2 :-

C program for converting integer number to hex number using sprintf


Output:-

Enter Integer number
30
001e

Enter Integer number
1000
03e8

Leave reply

Add your comments here

Back to Top