what is th address in union

Post new topic   Reply to topic

View previous topic View next topic Go down

what is th address in union

Post  amazon on Thu Jan 08, 2009 1:18 pm

#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

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum