sizeof float (3.0) vs (3.0f)
- by kumar
Hi,
What is the difference between sizeof(3.0) and sizeof(3.0f)
I was expecting both of them to give the same result (sizeof float)..but its different.
In 32 bit machine,gcc compiler,
sizeof(3.0f) =4
sizeof(3.0) = 8
Why so?