C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Passing Values Double And Float Type See Result In Integer Value
WhatsApp
Krishna Rajput Singh
Mar 21
2016
938
0
1
#include<stdio.h>
#include<conio.h>
main()
{
//that program convert double and float datatype values to integer type
double
a=21.09399;
float
b=10.20;
int
c;
c=(
int
) a;
printf(
"interger of c\n%d"
,c);
c=(
int
) b;
printf(
"%d"
,c);
return
0;
}
C
Passing Values
float type