FU:FYBPV0003 Programming in language C - Course Information
FYBPV0003 Programming in language C
Institute of physics in Opavasummer 2021
- Extent and Intensity
- 1/2/0. 4 credit(s). Type of Completion: z (credit).
- Guaranteed by
- RNDr. Jan Novotný, Ph.D.
Institute of physics in Opava - Prerequisites
- 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
- Astrophysics (programme FU, FYZB)
- Astronomy and popularization (programme FU, FYZB)
- 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
- Installation - Development environment, source code creation, program debugging.
- Literature
- 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
- The course is taught annually.
The course is taught: every week.
- Enrolment Statistics (summer 2021, recent)
- Permalink: https://is.slu.cz/course/fu/summer2021/FYBPV0003