PB071 Introduction to the C language

Faculty of Informatics
Spring 2014
Extent and Intensity
2/2. 4 credit(s) (plus extra credits for completion). Recommended Type of Completion: zk (examination). Other types of completion: z (credit).
Teacher(s)
doc. RNDr. Petr Švenda, Ph.D. (lecturer)
Mgr. Luděk Bártek, Ph.D. (seminar tutor)
RNDr. Jiří Glozar (seminar tutor)
Mgr. Marek Klučár (seminar tutor)
Mgr. Michal Mikloš (seminar tutor)
RNDr. Lukáš Ručka (seminar tutor)
Mgr. Lubomír Sedlář (seminar tutor)
RNDr. Šimon Tóth (seminar tutor)
RNDr. Marek Vinkler, Ph.D. (seminar tutor)
Mgr. Jiří Zárevúcky (seminar tutor)
RNDr. Aleš Zlámal (seminar tutor)
Mgr. Tomáš Brukner (assistant)
Mgr. Adrián Elgyütt (assistant)
Mgr. Milan Fabian (assistant)
Bc. Martin Hatina (assistant)
RNDr. Marek Chalupa, Ph.D. (assistant)
Miroslav Jaroš (assistant)
Mgr. Tobiáš Kamenický (assistant)
RNDr. David Klaška (assistant)
Mgr. Roman Lacko (assistant)
Mgr. Jan Tušil (assistant)
Mgr. Michal Vaško (assistant)
Guaranteed by
doc. RNDr. Vlastislav Dohnal, Ph.D.
Department of Computer Systems and Communications – Faculty of Informatics
Supplier department: Department of Computer Systems and Communications – Faculty of Informatics
Timetable
Mon 12:00–13:50 D1
  • Timetable of Seminar Groups:
PB071/T01: Mon 17. 2. to Sat 31. 5. Mon 13:00–14:55 Učebna S10 (56), Thu 20. 2. to Sat 31. 5. Thu 13:30–15:25 Učebna S3 (37), J. Glozar, P. Švenda, Nepřihlašuje se. Určeno pro studenty se zdravotním postižením.
PB071/01: Thu 12:00–13:50 B130, L. Bártek
PB071/02: Mon 14:00–15:50 B130, L. Bártek
PB071/03: Thu 16:00–17:50 B130, L. Ručka
PB071/04: Mon 18:00–19:50 B116, P. Švenda
PB071/05: Wed 8:00–9:50 B117, M. Vinkler
PB071/06: Thu 18:00–19:50 B204, M. Klučár
PB071/07: Wed 16:00–17:50 B116, A. Zlámal
PB071/08: Tue 14:00–15:50 B116, M. Mikloš
PB071/09: Wed 18:00–19:50 B116, L. Sedlář
PB071/10: Wed 10:00–11:50 B117, L. Sedlář
PB071/11: Thu 14:00–15:50 B117, L. Ručka
PB071/12: Tue 16:00–17:50 B117, T. Brukner
PB071/13: Mon 16:00–17:50 B116, P. Švenda
PB071/14: Tue 18:00–19:50 C525, A. Zlámal
PB071/15: Thu 8:00–9:50 G125, M. Vinkler
PB071/16: Tue 10:00–11:50 B116, M. Mikloš
PB071/17: Fri 10:00–11:50 B116, M. Klučár
PB071/18: Tue 18:00–19:50 B117, M. Klučár
Prerequisites
IB001 Intro to Prog. using C || IB111 Intro to Programming || IB999 Programming Test
Students are expected to have knowledge of algorithmization in Pascal or another procedural language. Students are also required to have user experience with Unix OS, as homework is submitted and tested on a Unix server.
Course Enrolment Limitations
The course is also offered to the students of the fields other than those the course is directly associated with.
fields of study / plans the course is directly associated with
there are 22 fields of study the course is directly associated with, display
Course objectives
At the end of the course students should be able to:
Understand and use basic C syntax according to ANSI and ISO/IEC norms.
Decompose given problem and perform practical implementation.
Use modern development tools (IDE, debugger, version control...).
Understand basic C functions for POSIX system.
Annotate source code with possibility to automatically generate documentation. Understand and practically use documentation for existing functions.
Use and follow programming best practices.
Compile programs both under Unix and Windows.
Syllabus
  • Historical background of the C language. Its relation to the Unix OS.
  • C compilers under Unix and MS-DOS/MS-Windows, integrated development environment, debugger, version control. Good programming practices, testing.
  • Data types, constants, declarations, expressions. Assignment expressions and statements.
  • Basic program structure. Preprocessor statements. Comments. Control structures. Relational expressions. Elementary I/O operations.
  • Arrays and pointers. Functions. Calling by value, passing arguments by pointer.
  • User defined data types. Dynamic memory allocation.
  • I/O in details. Using files. Wide characters.
  • Strings and string manipulation. Standard C library according to ANSI and ISO/IEC standards. Calling Unix core services. Further Unix libraries for C. POSIX C Library. Implementation on Windows.
  • Safe and defensive programming. Advanced testing.
Literature
  • Kernighan, Brian W. - Ritchie, Dennis M. Programovací jazyk C. Brno: Computer Press, 2006. ISBN 80-251-0897-X
  • HEROUT, Pavel. Učebnice jazyka C. 3. upr. vyd. České Budějovice: KOPP. 269 s. ISBN 80-85828-21-9. 1996. info
  • HEROUT, Pavel. Učebnice jazyka C. České Budějovice: KOPP. 236 s. ISBN 80-85828-50-2. 1998. info
  • DRESSLER, Miroslav. Programovací jazyky GNU : volně šiřitelná programátorská prostředí : Fortran, jazyk C, Pascal, GRX, DJGPP, RHIDE, RSX, VESA, EMX, MAKE. 1. vyd. Praha: Computer Press. xix, 225. ISBN 8072260707. 1998. info
Bookmarks
https://is.muni.cz/ln/tag/FI:PB071!
Teaching methods
Teaching consists from theoretical lectures combined with the practical exercises and programming homework selected to practice topics from lectures.
Assessment methods
During the whole semester, student will undertake 5 programming homework, two written tests and one final programming exercise. 50 % of points are required to pass the course in addition to successful competition of final programming exercise.
The students are working on given homework (usually finalized at home or in computer lab). Homework are awarded by point according to given criteria. Recommended finalization is exam, which is maintained as test questionnaire on computer. Precondition for undertake exam is to have awarded credit from practical exercises and autonomously programmed final assignment. Classification is based on points gathered from exercises, test questionnaire and final assignment. When only credit for practical exercises is required, student's classification is based only on points gathered from exercises. Participation on practical exercises is mandatory, unless teacher allows for exception (e.g., based on student exceptional knowledge of the subject).
Language of instruction
Czech
Follow-Up Courses
Further comments (probably available only in Czech)
Study Materials
The course is taught each semester.
Listed among pre-requisites of other courses
Teacher's information
http://cecko.eu/public/pb071
The course is also listed under the following terms Autumn 2002, Spring 2003, Spring 2004, Spring 2005, Spring 2006, Spring 2007, Spring 2008, Spring 2009, Spring 2010, Spring 2011, Autumn 2011, Spring 2012, Autumn 2012, Spring 2013, Autumn 2013, Spring 2015, Spring 2016, Spring 2017, Spring 2018, Spring 2019, Spring 2020, Spring 2021, Spring 2022, Spring 2023, Spring 2024.
  • Enrolment Statistics (Spring 2014, recent)
  • Permalink: https://is.muni.cz/course/fi/spring2014/PB071