Subj : Re: Any help on why? To : borland.public.cpp.borlandcpp From : maeder Date : Thu Jul 08 2004 07:14 pm "Stan DeGroff" writes: > 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 ??? Some programmers suggest using a union for this, but writing to one union member and then reading from another has undefined behavior in most cases. In another post, I showed how to cast a pointer to double to a pointer to unsigned char and treat the double object as an array of unsigned char. .