2 votes 2 votes What is the output of the following $C$-program main() { printf("%d %d %d",size of (3.14f), size of (3.14), size of (3.141)); } 4 4 4 4 8 10 8 4 8 8 8 8 Programming in C ugcnetcse-dec2005-paper2 programming-in-c data-types + – go_editor asked Mar 27, 2020 • edited Mar 31, 2020 by Arjun go_editor 2.2k views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments vg653 commented Apr 2, 2020 reply Follow Share A should be the correct answer. 1 votes 1 votes Jitendra2704 commented Apr 17, 2020 reply Follow Share i think the answer will be 4,8,8 but it doesnt matches with any of the options above . 2 votes 2 votes Hira Thakur commented Aug 2, 2020 reply Follow Share Refer here: https://www.geeksforgeeks.org/sizeof-floating-constant-in-c/?ref=rp 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes (4,8,8) This is not in options but other than first no, nothing in the float. other are long unsigned datatype iot_ts answered Jun 7, 2020 iot_ts comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes A. 4 8 8 float takes 4 bytes and decimal number without f is consider as double so it takes 8 bytes Aakriti12 answered Jul 23, 2020 Aakriti12 comment Share Follow See all 0 reply Please log in or register to add a comment.