You are here:

C/memory allocation

Advertisement


Question
how memory is alloted for float nos,are they stored in form of binary equivalents like int?

Answer
No. For float and double the value is stored in a different way.
It uses a IEEE standard way and you can read this from the standard.
Search in the google for this and you will get many pages and also examples.

Also, I have already answered this in one of the previous questions posed to me and you can refer that also.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.