Re: need for an extra variable.



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
.