4 votes 4 votes What will be output if you will compile and execute the following C code? void main() { printf("%d",sizeof(5.2)); } $4$ $8$ $2$ $16$ Programming in C nielit2016dec-scientistb-cs programming-in-c output + – admin asked Mar 31, 2020 retagged Oct 29, 2020 by Krithiga2101 admin 2.5k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes sizeof(“5.8”) // Will give the sizeof(double_variable) which may differ from platform to platform. On my system it is “8”. I guess, in such type of question, data about the size of relevant data type is_often/should_be given. nocturnal123 answered Aug 19, 2020 nocturnal123 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes B is correct answer becoz complier by deafault take 5.2 as double Anony mous answered Sep 23, 2020 Anony mous comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes answer is 8 bytes….run krke dekh lo...ya phir compiler dependent hoga….. Pintusaini answered Jul 16, 2021 Pintusaini comment Share Follow See all 0 reply Please log in or register to add a comment.