Subj : Re: Any help on why? To : borland.public.cpp.borlandcpp From : Stan DeGroff Date : Fri Jul 09 2004 03:39 am This is a much better way of doing it for sure. No uncontrolled alignment or size problems. I'll have to move on in the book because Union are coming up. Thx guys It's been entertaining to say the least! As far as "equate". It's been awhile. Just know I did it in Fortran with great results about 20 yrs ago. In fact I don't even have the books or software anymore. The %LX deal works, but I can see that size and alignment are issues which may be hard to nail down and control from the programmer side of the compiler The comment about the float being passed as a double seems to be upheld in one of my experiments. Where 1.0 = 0x3FF0,0000,0000,0000 in float or double variables. And when using different values the number did track correctly (as doubles). Stan "Ed Mulroy [TeamB]" wrote in message news:40ed7e4b$1@newsgroups.borland.com... > > Question: In fortran I can map an array of integers on > > top of an array of floating point. This allows me to gain > > access to the data in multiplt formats. This is done > > by using the "equate" operand. > > > > Is there a similar operation within C ??? > > If by "equate" you meant "equivalence" then look at unions. A union > is a way in C for allowing you to use the same block of memory as any > of two or more types. > > . Ed > > > Stan DeGroff wrote in message > > news:40ec546e@newsgroups.borland.com... > > .