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?
MOCK TEST-2, Q:-3
Moderator: admin
-
- Posts: 33
- Joined: Tue Jan 09, 2018 2:12 am
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: MOCK TEST-2, Q:-3
This is because of numeric promotion. Go through this thread to learn more: https://stackoverflow.com/questions/576 ... -promotion
If you like our products and services, please help us by posting your review here.
-
- Posts: 33
- Joined: Tue Jan 09, 2018 2:12 am
- Contact:
Re: MOCK TEST-2, Q:-3
thanks
Who is online
Users browsing this forum: marpiva and 46 guests