|
|
|
|
|
by donatj
6 days ago
|
|
I did an independent study of C in high school in 2003. I sat at a non-internet-connected terminal in the back of the TechED room and typed examples from the provided book into a very simple editor. Sometimes they compiled and worked. Sometimes they did not work despite being to all appearances character for character the same as the book, and I was often left with no idea why. It was not an entirely unfamiliar experience. I had a Mattel Aquarius as a young child and spent countless hours typing games in from the back of the manual before attempting to save them to cassette. |
|
The book may have been wrong - between 2000 and 2005 there were a ton of programming books that were flat out wrong. Many of these were C books.
Just one example: the examples from https://wozniak.ca/blog/2018/06/25/1/index.html are full of UB and are almost guaranteed to crash.