Poll

No polls currently selected on this page!

Repository

Repository is empty

Computer programming 2

Code: 36903
ECTS: 6.0
Lecturers in charge: dr. sc. Matej Mihelčić - Lectures
doc. dr. sc. Goranka Nogo - Lectures
Lecturers: doc. dr. sc. Marko Horvat - Exercises
Sebastijan Horvat, mag. inf. et math. - Exercises
dr. sc. Matej Mihelčić - Exercises
dr. sc. Mario Stipčić - 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:
Prerequisit for:
Enrollment :
Passed : Computer programming 1
2. semester
Mandatory course - Mandatory studij - Mathematics
Consultations schedule: