1 votes 1 votes #include<stdio.h> int main() { Float x=0.1; Printf("%d%d%d",sizeof(x),sizeof(0.1),sizeof(0.1f)); S .shubham asked Oct 5, 2017 S .shubham 501 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Answer should be 484, 4 for first float value, 8 for second double value and 4 for third float value. Hope you understood. nishant279 answered Oct 5, 2017 nishant279 comment Share Follow See all 3 Comments See all 3 3 Comments reply S .shubham commented Oct 5, 2017 reply Follow Share why o.1is evaluated as double and 0.1f as float please understand code line by line 0 votes 0 votes nishant279 commented Oct 5, 2017 reply Follow Share f specifies the float value after decimal but without specification compiler takes it as double. 0 votes 0 votes S .shubham commented Oct 5, 2017 reply Follow Share Why compiler takes it double 0 votes 0 votes Please log in or register to add a comment.