Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program to Convert Float Data Type To Intager Data Type.*/
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- float a;
- int b, *p;
- clrscr();
- a=25.1234;
- b=(int)a;
- p=&b;
- printf("\n Before Intager Value : %.2f",a);
- printf("\n Floating Value to Intager : %d",*p);
- getch();
- }
Add Comment
Please, Sign In to add comment