actually when u give
float i=12.5;
4 byte of memory is allocated for the float variable.But when u give
printf("%d",i); it accesses the first 2 bytes of the float variable (as it is now asked to...
Type: Posts; User: LJanardhan; Keyword(s):
actually when u give
float i=12.5;
4 byte of memory is allocated for the float variable.But when u give
printf("%d",i); it accesses the first 2 bytes of the float variable (as it is now asked to...
Its giving as 0 that is due to the change in formats specified in both declaration and printf statements...
It is to be noted if u declare an integer variable and in printf if u give %f then also a...