![]() |
Unions problem
union fun
{ char c; int i; double d; }; If a function set one of the member of fun, but we don't know which member is set as we can see the function call and how can we know after calling that function, that which member of union fun has been set by that function call. please tell me and admin please don't delete my post this time. |
Re: Unions problem
Which post did admin delete? It wasn't this one: http://www.go4expert.com/showthread.php?t=26487
If a post was deleted then you would have been given a reason why. If not then maybe what you posted was against the posting guidelines. Certainly duplicate posting is against the guidelines and if your posts have been deleted once and you're still breaking the rules then you risk getting banned. So READ the posting guidelines NOW - they are not difficult to find; there is a link immediately under the New Thread subject line. And make sure you DO NOT break the rules again. There is no way to know which member was set. There needs to be some record which indicates what was changed, for example Code:
struct cell |
Re: Unions problem
Deleted now.
|
| All times are GMT +5.5. The time now is 00:44. |