Re: need for an extra variable.
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 12:44:28 +0000
Richard Tobin said:
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()?
Oh, nice spot, sir!
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- need for an extra variable.
- From: chandanlinster
- Re: need for an extra variable.
- From: Richard Tobin
- need for an extra variable.
- Prev by Date: Re: C Interview Questions
- Next by Date: Re: C Interview Questions
- Previous by thread: Re: need for an extra variable.
- Next by thread: string search?
- Index(es):
Relevant Pages
|
|