C doubt

Discussion in 'C Programming' started by sangeeta chowdhary, Jul 2, 2010.

  1. why the output of sizeof(3.14) is 8. if size of float is 4 bytes.
    sangeeta chowdhary, Jul 2, 2010
    #1
    1. Advertising

  2. On 02/07/2010 08:43, sangeeta chowdhary wrote:
    > why the output of sizeof(3.14) is 8. if size of float is 4 bytes.


    Think about the type of 3.14

    Hint: It is not float.

    Hint: read 6.4.4.2p4 in ISO/IEC 9899:1999.


    Francois Grieu
    Francois Grieu, Jul 2, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Igbal

    Doubt to go .Net technology

    Igbal, Nov 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    484
    Ed Kaim [MSFT]
    Nov 17, 2003
  2. Bob Nelson

    doubt about doubt

    Bob Nelson, Jul 28, 2006, in forum: C Programming
    Replies:
    11
    Views:
    594
  3. Replies:
    0
    Views:
    536
  4. Peter Otten
    Replies:
    2
    Views:
    102
    Cousin Stanley
    Aug 10, 2013
  5. Terry Reedy
    Replies:
    0
    Views:
    106
    Terry Reedy
    Aug 10, 2013
Loading...

Share This Page