Computer Club MNNIT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

what is th address in union

Go down

what is th address in union Empty what is th address in union

Post  amazon 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

Back to top Go down

Back to top

- Similar topics

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