Poll

No polls currently selected on this page!

Repository

Repository is empty

Computer programming 2

Code: 92996
ECTS: 5.0
Lecturers in charge: doc. dr. sc. Matej Mihelčić - Lectures
doc. dr. sc. Goranka Nogo - Lectures
Lecturers: Sebastijan Horvat, mag. inf. et math. - Exercises
doc. dr. sc. Matej Mihelčić - Exercises
dr. sc. Ivana Šain Glibić - Exercises
English level:

1,0,0

All teaching activities will be held in Croatian. However, foreign students in mixed groups will have the opportunity to attend additional office hours with the lecturer and teaching assistants in English to help master the course materials. Additionally, the lecturer will refer foreign students to the corresponding literature in English, as well as give them the possibility of taking the associated exams in English.
Load:

1. komponenta

Lecture typeTotal
Lectures 30
Exercises 30
* Load is given in academic hour (1 academic hour = 45 minutes)
Description:
COURSE AIMS AND OBJECTIVES: Advanced programming with C.

COURSE DESCRIPTION AND SYLLABUS:
1. Functions. Defining a function. Function prototypes. Passing arguments to a function. Variable arguments through pointers. Recursive functions. Recursive algorithms: Quicksort, Partitions, Towers of Hanoi.
2. Program structure. Storage classes. Global and local variables. Multifile programs and header files.
3. Arrays. Multidimensional arrays, definition and initialization. Passing multidimensional arrays to functions. Examples: matrices and operations on matrices.
4. Pointers. Operations on pointers. Passing pointers to functions. Pointers and arrays. Pointers and functions. Dynamic memory allocation. Strings and string functions. Command line arguments.
5. Structures and unions. Defining a structure. Structures and pointers. Unions.
6. Self-referential structures. Linked lists and binary trees. Operations on linked lists, insertion and deletion of elements. Insertion sort, merge, Mergesort.
7. Data files. Creating a data file. Opening and closing a data file. Formatted reading and writing. Unformatted data files, reading and writing. Sequential and direct access.
8. The C preprocessor. Symbol and macro definitions, parametrized macros. File inclusion. Conditional compilation.
9. Standard C library. A brief overview. Mathematical functions library. Sorting and searching. Time functions.
Literature:
  1. B. S. Gottfried: Theory and Problems of Programming with C, Schaum's outline series
  2. B. W. Kernighan, D. M. Ritchie: The C Programming Language, 2nd edition
  3. S. Prata: C Primer Plus, 4th edition
1. semester
Računarstvo - Regular study - Mathematics Education

2. semester
Računarstvo - Regular study - Mathematics Education
Consultations schedule:

Content

Link to the course web page: https://www.pmf.unizg.hr/math/predmet/pro2_b