I recently started using a C book entitled "Absolute Beginner's Guide to C". Apparently, it is the second edition.
The reason I am so mad about this book is simply because this book is FULL of mistakes. Obviously, the author did not intend the reader to type in his code. This is not a compiler problem, either.
Now what do you see wrong with this? At the end of every chapter, he always has a program. His little programs almost never work. For a complete beginner, this could be quite a hassle.
(By the way, this is an exact quote from the book. I have proofread it many times.)
The reason I am so mad about this book is simply because this book is FULL of mistakes. Obviously, the author did not intend the reader to type in his code. This is not a compiler problem, either.
- Code:
#include <stdio.h>
main()
{
int ctrl = 1;
while (ctr <= 20)
{
printf("%d \n", ctr);
ctr++;
ctr = 1;
do
{
printf("%d \n", ctr);
ctr++;
}
while (ctr <= 20);
return 0;
}
Now what do you see wrong with this? At the end of every chapter, he always has a program. His little programs almost never work. For a complete beginner, this could be quite a hassle.
(By the way, this is an exact quote from the book. I have proofread it many times.)