FYBPV0003 Programming in language C

Institute of physics in Opava
summer 2024
Extent and Intensity
1/2/0. 4 credit(s). Type of Completion: z (credit).
Teacher(s)
RNDr. Jan Novotný, Ph.D. (lecturer)
RNDr. Jan Novotný, Ph.D. (seminar tutor)
Guaranteed by
RNDr. Jan Novotný, Ph.D.
Institute of physics in Opava
Timetable
Tue 10:35–11:20 PU-UF
  • Timetable of Seminar Groups:
FYBPV0003/A: Tue 11:25–13:00 PU-UF, J. Novotný
Prerequisites
(FAKULTA(FU) && TYP_STUDIA(B))
None
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
Course objectives
During the course, the students will learn the basics of programming in the C language, i.e. the syntax of the basic elements of the C language, including working with files, and basic data structures.
Learning outcomes
After completing the course, the student will be able to:
- writing and orienting code using the C programming language;
- basic work with data types;
- work with pointers, determine the visibility of variables;
- process user inputs via the command line;
- working with files (writing and reading);
Syllabus
  • Installation - Development environment, source code creation, program debugging.
    Language structure and syntax. Function declarations and definitions, function return value types and function arguments. Loops and branches Data types - Basic data types (char, int, real) Specification of variables and constants, characters and strings, structures, bit fields.
    Visibility of variables (extern, static), lifetime (auto), data type conversion, renaming of existing types (typedef). Preprocessor directives - Inserting files and function libraries with the INCLUDE directive, the DEFINE directive and its use in predefining macros, UNDEF for deleting definitions. Conditional directives when compiling source code (IF, ELSE, ENDIF, IFDEF, ELIF). DEFINED conditional directive Working with pointers - Pointers to simple variables, their declaration and initialization. Pointers to fields and text strings, initialization of text strings. Pointer as a function argument. Pointer array and pointer pointing to a pointer.
    Command line argument processing in DOS (UNIX). Pointers and functions
Literature
    required literature
  • Herout, P. Učebnice jazyka C - I. díl. Kopp, České Budějovice, 2010. info
  • P. Herout. Učebnice jazyka C II díl. Kopp, České Budějovice, 2010. info
Teaching methods
Lecture with discussion. Slides. Skills demonstrations. Group work in a computer room.
Assessment methods
Student performance analysis Oral presentation of a project with a working numerical code.
Language of instruction
Czech
Further Comments
Study Materials
The course is taught annually.
The course is also listed under the following terms summer 2021, summer 2022, summer 2023.
  • Enrolment Statistics (recent)
  • Permalink: https://is.slu.cz/course/fu/summer2024/FYBPV0003