what is th address in union

Go down

what is th address in union

Post  amazon on Thu Jan 08, 2009 6:18 am

#include<iostream>
using namespace std;
union add
{ int a;
float f;
char next;
};
main()
{ add ad;
cout<<&ad.a<<'\t'<<&ad.f<<'\t'<<&ad.next;
}

?????

amazon

Posts : 13
Join date : 2008-08-10

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum