General information
Class: SE18D, semester: Spring 2024 and Summer 2024
Instructor: Dr. Trinh Hoang Minh
Time: Monday (Slot 4) and Friday (Slot 3) from {01/01/2024 to 24/03/2024} - Spring semester and {07/05/2024 to 19/07/2024} - Summer semester
Place: Room 418, Beta Building, Quy Nhon AI Campus, FPTU, Binh Dinh
References
E. Weaver, Foundations of Programming Using C, Seneca College, 2006.
A. Kelley, I. Pohl, A Book on C Programming in C, 4th Edition, Addison Wesley, 1998.
B. W. Kernighan, D. M. Ritchie, The ANSI C Programming Language, 2nd Edition, Prentice Hall Software Series, 1988.
FPTU Slides and Workshops PRF192.
Instructor's slides.
0 Introduction to C
Course's policies
C programming language
Programming tools and IDEs
First C program
1 Basic computations
Basic input, output, and variables
Basic data types
Arithmetic operators
Assignment operator
Literals in C
2 Basic logic
Relational and logical operators
The if statement
The switch statement
The while statement
The for statement
Pseudocode and block diagram
3 Modularity
Function
Function prototype
Scope of variables
Storage class
Recursion
4 Pointers
Addresses
Pointers
Macros
Data casting
scanf, getchar
printf
5 Arrays
Arrays
Arrays and pointers
Arrays as function arguments
Linear search
Bubble sort
Basic of algorithm complexity
Merge sort
6 Strings
Strings
Standard string-handling functions
Multidimensional arrays
Array of pointers
7 Files
Files
fopen and fclose
fprintf and fscanf
Record and field
Managing parallel arrays
8 User-defined datatypes
Enum
Union
Struct
Single linked-list data structure