Open In App
Related Articles

Algorithms Quiz | SP2 Contest 1 | Question 15

Improve Article
Save Article
Like Article

Whenever there are two operands of different data types involved in an expression, then the one with lower rank automatically gets promoted to the data type with a higher rank. This is called Type Promotion in C. Below are some data types arranged in order of their ranks. Choose the correct order.
(A) double > float > int > unsigned

(B) int < unsigned < double < float
(C) int < unsigned < float < double

(D) float > double > int > unsigned

Answer: (C)

Explanation: Whenever we have two operands of different data types in an expression we convert the operand of lower rank to a data type of higher rank. The process is called Promotionof Type.

Quiz of this Question

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 28 Aug, 2018
Like Article
Save Article
Similar Reads