Re: Interview question: variable initialisation
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Mon, 08 May 2006 09:49:33 -0400
Andy Sinclair wrote:
.... snip ...
IMO if the result of an operation is not immediately clear, you
should make it so. At a conference I attended a couple of years
ago, the speaker suggested that when using a C reference for
embedded systems, you should remove the operator precedence table
and set it on fire.
An excellent recommendation. In an attempt to reduce the fire
risk, I have always recommended never assuming any precedence
levels over multiplicative, additive, logical (, assignment). For
anything further, use parentheses.
--
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
-- B. Franklin, 1759
"When I want to make a man look like an idiot, I quote him."
-- Mark Twain
"I hear the voices." G W Bush, 2006-04-18
.
- References:
- Interview question: variable initialisation
- From: tim \(back at home\)
- Re: Interview question: variable initialisation
- From: Grant Edwards
- Re: Interview question: variable initialisation
- From: tim \(back at home\)
- Re: Interview question: variable initialisation
- From: CBFalconer
- Re: Interview question: variable initialisation
- From: tim \(back at home\)
- Re: Interview question: variable initialisation
- From: Gene S . Berkowitz
- Re: Interview question: variable initialisation
- From: tim \(back at home\)
- Re: Interview question: variable initialisation
- From: Andy Sinclair
- Interview question: variable initialisation
- Prev by Date: Re: arm7 devlopement kit
- Next by Date: Re: Language Selcection Philosophy
- Previous by thread: Re: Interview question: variable initialisation
- Next by thread: Re: Interview question: variable initialisation
- Index(es):
Relevant Pages
|