www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/17/19:14:26

From: Sascha Zapf <nc-zapfsa AT netcologne DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Union
Date: Tue, 17 Aug 1999 23:13:53 +0100
Distribution: world
Message-ID: <37B9DEA0.34A7048F@netcologne.de>
References: <37B9C47F DOT DDDEE1C8 AT id-base DOT com>
NNTP-Posting-Host: dial-ra-nc4-144.netcologne.de
Mime-Version: 1.0
X-Trace: news.netcologne.de 934924521 547 195.14.254.144 (17 Aug 1999 21:15:21 GMT)
X-Complaints-To: usenet AT news DOT netcologne DOT de
NNTP-Posting-Date: 17 Aug 1999 21:15:21 GMT
X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I)
X-Accept-Language: de-DE,en
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

the union use the same Place for all Member...

for Example..

union utest
{
    char a;
    char *next;
    int    test;
    double fp;
}

This union take 8 Bytes of Memory, and the Programmer say what to read.

sascha



sephiroth schrieb:

> What is the point of the "union" structure? Why not just use "struct"?
>
> --
> ---All words by---------------------------
> ---"Shiny Blue Freak", AKA Aaron JP-------
> -"I'm a person, think of me as non other"-
> --------http://get.to/blahblur------------
> ---http://members.dencity.com/blahblur/---

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019