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. Advertisements

  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. Advertisements

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:
    664
    Ed Kaim [MSFT]
    Nov 17, 2003
  2. manasa sreenivas via .NET 247

    doubt about namespace google

    manasa sreenivas via .NET 247, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    744
    John Young
    May 15, 2004
  3. Ajith Nair

    doubt

    Ajith Nair, Mar 24, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    778
    nandha
    Mar 29, 2005
  4. Robbe Morris [C# MVP]

    Re: Request / Doubt

    Robbe Morris [C# MVP], May 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    558
    Ajith Nair
    May 4, 2005
  5. Abdul K Shaik

    DDR/SDR-SDRAM Bank Switching Doubt

    Abdul K Shaik, Aug 9, 2003, in forum: VHDL
    Replies:
    1
    Views:
    2,519
    David Jones
    Aug 9, 2003
  6. Bob Nelson

    doubt about doubt

    Bob Nelson, Jul 28, 2006, in forum: C Programming
    Replies:
    11
    Views:
    1,012
  7. Replies:
    0
    Views:
    802
  8. Peter Otten
    Replies:
    2
    Views:
    294
    Cousin Stanley
    Aug 10, 2013
Loading...