Write a C program to output float and hexadecimal.
Menu
Turn Mobile View Off
by Dinesh Thakur

 

 

#include<stdio.h>

#include<conio.h>
void main()
{
printf("%x %#x\n", 10, 10);
printf("%*. *f", 10, 4, 1234.34);
getch();
}
 
OUTPUT:
a 0xa
1234.3400
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off