I don't understand what you want to know be more precise but i think my
solution may help.
#include<string.h>
> #include<stdio.h>
> int main()
> {
> union{
> int a;
> double b;
> }u1={10.5};
> union{
> double a;
> int b;
> }u2={10.5};
> printf("%d %f *%f %d*",u1.a,u1.b,u2.a,u2.b);
> }
>
o/p : 10 0.000000 10.5000000 0
I think it is acceptable?
There was %f instead of %d n vice versa.
--
Pradeep Kumar Mishra
IIIT Allahabad
B. Tech 3rd Year ( IT )
Another Mail - [email protected]
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.