Programming

Academic Semester:
Course TypeReference NumberSubprogram
CompulsoryTheory: ΤΠ10Κ4
Lab: ΤΠ11Κ4
SemesterAcademic YearHours per week
Winter1stTheory: 4 Lab: 2
ExamsECTSWorkload
814
PrerequisitesTeaching methodTeaching Language
Lectures with parallel laboratory classesGreek

Academic Staff

Faculty in charge: 
xezonakis's picture
ξεζωνάκης ιωάννης
Xezonakis Ioannis
Professor
Καθηγητής

THEORY COURSE

  • Getting started in C.
  • Variables.
  • The printf() function.
  • Data (int, long, unsigned, char, float, double). Format strings %d, %x, %o, %f, %c.
  • Constants.
  • The scanf( ) function.
  • Arrays (introductory).
  • Operators, operators' priority. Casting and types' conversion.
  • Strings in general (input - output). Format string %s.
  • Function's return value (introductory). The strlen( ) function. 
  • Functions getchar( ), getch( ), getche( ), putchar( ).
  • True – false. Relational opertors.
  • The if and the if-else statements, multiple if, nested if-else. Simple and compound statements. The switch statement.
  • Loops: for, while, do-while.
  • Nested loops. The special purpose statements break and continue.
  • Functions. Simple functions. Functions' argumernts.
  • Function's return value. Functions' types. Recursion.
  • Addresses. The & operator. Pointers.
  • Passing adresses to functions.
  • Automatic, global and static variables.
  • Arrays. Pointers to arrays. Arrays as arguments of functions
  • Strings. Constant strings. String's input: functions gets() and scanf(). String's output: functions puts() and printf() .
  • Other strings' functions: strlen(), strcpy(), strcat(), strcmp(), strchr().
  • String conversion to int and float: functions atoi(), atol(), atof( ).
  • Structures. Simple structures. Data input. Nested structures. Arrays of structures.

 
LABORATORY COURSE
Exercises and programs following the theory course.

 

Head of the Department οf Informatics Engineering
Malamos Athanasio ASSOCIATE PROFESSOR, amalamos@hmu.gr

Deputy Head of the Department οf Informatics Engineering
Marias Kostas ASSOCIATE PROFESSOR, kmarias@hmu.gr

Secretary
Address: Department of Informatics Engineering, School of EngineeringTEI of Crete, Heraklion, Crete, P.O Box: 71500
E-mail: secretariat@ie.teicrete.gr
Tel: 2810-379716, 2810-379795, 2810-379853
Fax: 2810-379717
Website: http://www.ie.teicrete.gr

Administrators
Tel: 2810-379776