1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Standard C multiple choice!

  1. Feb 18, 2010 #1
    D. When evaluating a mixed type expression (e.g. a + b) if either operand is a floating type,
    which of the following conversions or promotions may occur
    i. int is converted to float
    ii. float is promoted to double
    iii. double is promoted to long double
    iv. int is promoted to unsigned int
    v. None of the above

    Just wanted to double check here and confirm my answer. I know that int will be converted to float, so (i) is correct, (ii and iii) could take place if the non floating type integer is a double or long double, I don't see a reason for an int to be converted, it will simply go to float, disproving (iv), and (v) is not right. Do you guys agree? Thanks!
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Standard C multiple choice!
Loading...