How can I get the sizes of various types in c?

Posted by user292489 on Stack Overflow See other posts from Stack Overflow or by user292489
Published on 2010-03-15T13:49:47Z Indexed on 2010/03/15 17:09 UTC
Read the original article Hit count: 141

Filed under:

I'm looking for the following information to be printed out:

sizeof(int) = ?
sizeof(float) = ?
sizeof(double) = ?
sizeof(char) = ?
sizeof (167) = ?
sizeof(3.1415926) = ?
sizeof(‘$’) = ?

© Stack Overflow or respective owner

Related posts about c