GOEDUHUB Online Courses || Last Batch Student's Projects || COVID-19 Projects(AI-ML) || Universities  ||  Placement Preparation  
+91-7976731765 Free Online Tutorials ||  MACHINE LEARNING || Python || DBMS || OOPs || DSA || Java || Linux/Unix ||  C Programming
0 like 0 dislike
10 views
in Tutorial & Interview questions by Goeduhub's Expert (8k 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 (8k 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 5 views
0 like 0 dislike
1 answer 13 views
0 like 0 dislike
1 answer 9 views
0 like 0 dislike
1 answer 15 views
 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
 Goeduhub
About Us | Contact Us   Social::   |  | 
...