Re: int64_t == long long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wesley Smith wrote:
 cout << sizeof(int64_t) << endl;
 cout << sizeof(long long) << endl;

print:

8
8


8*8 = 64

sizeof reports the # of bytes, not bits.
wes

Thanks, I knew that. I was just confused why they weren't then being treated as the same type.

--
Yang Zhang
http://www.mit.edu/~y_z/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux