Re: need for an extra variable.
- From: richard@xxxxxxxxxxxxxxx (Richard Tobin)
- Date: 31 Oct 2006 12:37:56 GMT
In article <1162288032.438701.110710@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
chandanlinster <chandanlinster@xxxxxxxxx> wrote:
while ((s[0] = c = getch()) == ' ' || c == '\t')
my question is, why would we need the variable 'c'.
What are the types of s[0] and c? What is the type returned by getch()?
-- Richard
.
- Follow-Ups:
- Re: need for an extra variable.
- From: Richard Heathfield
- Re: need for an extra variable.
- References:
- need for an extra variable.
- From: chandanlinster
- need for an extra variable.
- Prev by Date: Re: C Interview Questions
- Next by Date: Re: C exe on winXP memory limitation
- Previous by thread: Re: need for an extra variable.
- Next by thread: Re: need for an extra variable.
- Index(es):