Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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
915
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
Up Next
Passing Values Double And Float Type See Result In Integer Value