Hello,
What is the difference between:
while ((ch = getchar()) != '#')
and:
while (ch = getchar() != '#')
Thank you.
Hello,
What is the difference between:
while ((ch = getchar()) != '#')
and:
while (ch = getchar() != '#')
Thank you.
The second one calls getchar, checks whether or not it's equal to '#', and assigns true or false (i.e., 1/0) to ch. The first assigns the char to ch, and then checks equal to '#'.
Ah ha, thank you.
HOPE YOU UNDERSTAND.......
By associating with wise people you will become wise yourself
It's fine to celebrate success but it is more important to heed the lessons of failure
We've got to put a lot of money into changing behavior
PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
IDE- Microsoft Visual Studio 2008 Express Edition