GOEDUHUB Online Courses || Last Batch Student's Projects || COVID-19 Projects(AI-ML) || Universities  ||  Placement Preparation  Subscribe our youtube channel
+91-7976731765 Free Online Tutorials || AI || ML || NLP ||  OpenCV || Python || DBMS || OOPs || DSA || Java || Linux/Unix ||  C Programming
0 like 0 dislike
11 views
in Tutorial & Interview questions by Goeduhub's Expert (8.1k points)

Performs an explicit conversion into the given type from the value resulting from evaluating the given expression.

1 Answer

0 like 0 dislike
by Goeduhub's Expert (8.1k points)
 
Best answer
Performs an explicit conversion into the given type from the value resulting from evaluating the given expression.

int x = 3;

int y = 4;

printf("%f\n", (double)x / y); /* Outputs "0.750000". */

Here the value of x is converted to a double, the division promotes the value of y to double, too, and the result of the division, a double is passed to printf for printing.

Related questions

0 like 0 dislike
1 answer 6 views
0 like 0 dislike
1 answer 13 views
0 like 0 dislike
1 answer 11 views
0 like 0 dislike
1 answer 15 views

 Goeduhub:

About Us | Contact Us  © goeduhub.com Social::   |  | 
 Placements:   List of companies | Logical Reasoning Questions | Quantitative Aptitude Questions | General English Questions | Technical-MCQ and Interview Questions
 Important Lists: List of NITsList of IITsList of Exams After Graduation | List of Engineering Entrance Examinations (UG/PG)College ReviewsCollege Fest, Events & WorkshopsKnowledge ShareTrainees/Interns After 15-04-2020
Exams & Cutoffs: JEE Main | JEE Advanced | GATE | IES | ISROList of PSUs || Cutoff-GATECutoff_IIT-JEECS-ScopeECE ScopeEE-Scope
 Download Previous Year Papers For:  GATE | IES | RAJASTHAN TECHNICAL UNIVERSITY (RTU-Kota)RPSC Technical Exams | ISRO
...