The 2007 printed notes contain (at the very least!) the following errors. These errors have been corrected in the on-line version of the notes shown above. If you find any further errors, please email the principal lecturer.
Lecture No. | Slide No. | Errata | Corrige |
1 | 3 | Stroustrip | Stroustrup |
1 | 13 | False inclusion of operator "~=" in assignment; missing "!" in logic | Remove operator "~=" from assignment and add "!" on to the list of logical operators |
3 | 2 | A pointer does necessarily | A pointer does not necessarily |
3 | 6 | char *pi=&i[5] | int *pi=&i[5]; |
3 | 22 | union u { int i; float f; char c;} | union u { int i; float f; char c;}; |
4 | 3 | Missing "return 0;" at the end of the main function | add "return 0;" immediately above the closing bracket for the main function |
4 | 5 | return n ? 1 : n*fact(n-1) | return n ? n*fact(n-1) : 1; |
7 | 5 | "try {" should ideally appear on a new line | place "try {" on a new line |