From: Andrew Haley <aph@redhat.com>
To: horseriver <horserivers@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: how to implement this ?
Date: Mon, 07 Jan 2013 15:21:00 -0000 [thread overview]
Message-ID: <50EAE52B.8000001@redhat.com> (raw)
In-Reply-To: <20130107051145.GE2432@debian.localdomain>
On 01/07/2013 05:11 AM, horseriver wrote:
> On Mon, Jan 07, 2013 at 02:31:19PM +0000, Andrew Haley wrote:
>> On 01/07/2013 04:46 AM, horseriver wrote:
>>> hi:
>>>
>>> how to implement this assignment by MACRO?
>>> int a,b,c ;
>>>
>>> ((a==0)?b:c)=8;
>>
>> This is for help with GCC, not general C coding help.
>>
>> *((a==0) ? &b : &c) = 8;
>>
>> But this is really horrible code. I wouldn't do it.
>
> thans!
>
> why gcc report that error ?
>
> gcc can translate " ((a==0)?b:c)=8 " into if-else sentence .
>
> wht is the reason ï¼
Please supply the test case and the error message.
Andrew.
next prev parent reply other threads:[~2013-01-07 15:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 14:31 horseriver
2013-01-07 14:53 ` Andrew Haley
2013-01-07 15:09 ` horseriver
2013-01-07 15:21 ` Andrew Haley [this message]
2013-01-07 15:25 ` horseriver
2013-01-07 15:35 ` Andrew Haley
2013-01-07 15:44 ` horseriver
2013-01-07 15:49 ` Andrew Haley
2013-01-07 15:52 ` horseriver
2013-01-07 17:05 ` Andrew Haley
2013-01-07 15:30 ugiwgh
2013-01-07 15:39 ` how " horseriver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50EAE52B.8000001@redhat.com \
--to=aph@redhat.com \
--cc=gcc-help@gcc.gnu.org \
--cc=horserivers@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).