+ Reply to Thread
Results 1 to 4 of 4

Thread: What is size of real number???

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Location
    India
    Posts
    25
    Rep Power
    8

    What is output for the following in a C Compiler?


    float a = 3.14;

    charc = 'A';


    printf(" %d", sizeof(3.14));

    printf(" %d", sizeof('A'));


    printf(" %d",sizeof(a));


    printf(" %d",sizeof(c));
    praWIN

  2. #2
    Senior Member
    Join Date
    Mar 2006
    Location
    India
    Posts
    312
    Rep Power
    11
    i think 4 4 1 1 but i find some more accuracy when we use value directly so it may store upto some more extent. tell me answer.
    Nachithe entha riskaina chesta
    okkasari fix ayithe naa maata nene vinanu

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    607
    Rep Power
    16


    HI,


    My answer is 8141.I am having only c compiler not c++.Then why answer differs murari?Am i wrong?What is the correct answer?


    Edited by: Rena
    \"A GREAT PLEASURE IN LIFE IS DOING WHAT PEOPLE SAY YOU CANNOT DO\".

  4. #4
    Senior Member
    Join Date
    Mar 2006
    Location
    India
    Posts
    312
    Rep Power
    11
    hey sorry
    u r right
    congrats
    i am in some what bad mood to think upto that extent.
    sorry

    Nachithe entha riskaina chesta
    okkasari fix ayithe naa maata nene vinanu

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.1 PL1