Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sizeof(3.0) と sizeof(3.0f) の違いは何ですか?
私はそれらの両方が同じ結果(sizeof float)を与えることを期待していました..しかし、それは異なります。
32 ビット マシン、gcc コンパイラでは、sizeof(3.0f) =>4 sizeof(3.0) => 8
なんでそうなの?