TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Passing Values Double And Float Type See Result In Integer Value
Krishna Rajput Singh
Mar 21
2016
Code
844
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
#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