No polls currently selected on this page!


Repository is empty

Computer programming 2

Code: 36935
ECTS: 6.0
Lecturers in charge: doc. dr. sc. Matko Ljulj
doc. dr. sc. Matej Mihelčić
Lecturers: doc. dr. sc. Barbara Bošnjak - Exercises
Tomislav Perić , mag. math. - Exercises
doc. dr. sc. Ivana Šain Glibić - Exercises
English level:


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.

1. komponenta

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

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.
Prerequisit for:
Enrollment :
Attended : Computer programming 1

Examination :
Passed : Computer programming 1
4. semester
Izborni predmet 2 - Regular study - Mathematics Education
Consultations schedule:
  • doc. dr. sc. Matko Ljulj:

    Summer term 23/24:  Wednesday 12-14h (registration by e-mail obligatory)

    Location: 312


Link to the course web page: http://degiorgi.math.hr/prog2/