Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > C doubt

Reply
Thread Tools

C doubt

 
 
sangeeta chowdhary
Guest
Posts: n/a
 
      07-02-2010
why the output of sizeof(3.14) is 8. if size of float is 4 bytes.
 
Reply With Quote
 
 
 
 
Francois Grieu
Guest
Posts: n/a
 
      07-02-2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dotnet doubt can any body clarify my doubt challa462@gmail.com ASP .Net 0 08-22-2012 06:02 AM
doubt about doubt Bob Nelson C Programming 11 07-30-2006 08:17 PM
doubt Ajith Nair ASP .Net 6 03-29-2005 01:25 PM
doubt about namespace google manasa sreenivas via .NET 247 ASP .Net 1 05-15-2004 03:05 PM
Doubt to go .Net technology Igbal ASP .Net 1 11-17-2003 06:56 AM



Advertisments