Intendierte Lernergebnisse
The students should learn how to write small programs in C. We will also have a particular focus on writing efficient code. Furthermore, we will discuss potential pitfalls that can lead to extensive debugging if the programmer is not aware of it.The class is designed to be helpful for both beginners, who want to get started with C, and for advanced C programmers who want to improve coding style and avoid common mistakes.
Lehrmethodik
Each class consists of a lecture part with slides and a discussion session. In the latter, students present solutions of tasks and we jointly evaluate and optimize the code.
Inhalt/e
The topics covered in the course will include: Introduction to the syntax of CTypes, operators and expressionsControl structuresFunctions and program structureMemory addressing and pointersArrays and structuresMemory managementInput and output
Erwartete Vorkenntnisse
Students should have some basic knowledge in programming in any other language, such as JAVA. They are expected to be able to write a few lines of code, know how to use loops and work with functions.
Curriculare Anmeldevoraussetzungen
Students have to have passed the class "ESOP" or possess equivalent knowledge or basic programming skills.
Literatur
Book:The C Programming Language (2nd Edition) Brian Kernighan and Dennis RitchieC – Einführung und professionelle Anwendung (2nd Edition) Peter Prinz and Ulla Kirch-Prinz, mitp 2007