0 votes 0 votes closed with the note: Irrelevant for GATE, please see https://gateoverflow.in/blog/2113/new-posting-guidelines Explain in detail how and what conversion(in binary bit pattern) takes place for following codes: 1) int i=37; float f=*(float *)&i; printf("f=%f",f); [Output:f=0.000000] 2)float f=7.0; short s=*(short *)&f; printf("s=%hd",s); [Output:s=0] Programming in C programming-in-c number-representation floating-point-representation + – Veeplob Singh asked Jul 1, 2017 • closed Jul 2, 2017 by Arjun Veeplob Singh 382 views comment Share Follow See all 0 reply Please log in or register to add a comment.