| Deutsch English Français Italiano |
|
<vjh8hu$3den0$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Thiago Adams <thiago.adams@gmail.com>
Newsgroups: comp.lang.c
Subject: C89 "bug"
Date: Fri, 13 Dec 2024 09:15:58 -0300
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vjh8hu$3den0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Dec 2024 13:15:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8b9a0b17735b443b8fd85bb0477dd1c9";
logging-data="3586784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gPYJo+qnK/LpF9LNaO6k2brmClL6nvAQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZZ6ktlFz6gAwiN48hkPqXnRfJZ0=
Content-Language: en-GB
Bytes: 1106
Does anyone knows how can I convert this code (external declaration) to C89?
union U {
int i;
double d;
};
union U u = {.d=1.2};
The problem is that in C89 only the first member of the union is
initialized.