what is th address in union
Page 1 of 1 • Share •
what is th address in union
#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;
}
?????
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
Permissions of this forum:
You cannot reply to topics in this forum





