Page 1 of 1

MOCK TEST-2, Q:-3

Posted: Tue Feb 13, 2018 6:07 am
by ashishrai.kv
Q:-float d = 0 * 1.5;

why above is not float but its double as i know both have only difference in respect to the storage value?

Re: MOCK TEST-2, Q:-3

Posted: Tue Feb 13, 2018 11:54 pm
by admin
This is because of numeric promotion. Go through this thread to learn more: https://stackoverflow.com/questions/576 ... -promotion

Re: MOCK TEST-2, Q:-3

Posted: Wed Feb 14, 2018 9:26 am
by ashishrai.kv
thanks :)