Programming in ANSI C, 8ed
Prof. J. So,
Communications and Networking Lab (CNL),
Department of Electronic Engineering, Sogang University
Copyright © 2021 J. So. All rights reserved. Not for distribution or reproduction.
Ch. 1 Introduction to Computing
Flowchart, Pseudocode
Ch. 2 Overview
Print "Hello world"
- ex02-1.c // Print "Hello world" - printf()
- ex02-2.c // Print sum from 1 to n, where n is obtained fron the console - scanf()
Ch. 3 Constants, Variables, and Data Types
Variable names, Data types, sizeof(), Endian
- ex03-1.c // Variable names - $, %, !, ~, )
- ex03-2.c // Data types and sizes - sizeof()
- ex03-3.c // Big endian vs. little endian
- ex03-4.c // Simple calculator
- ex03-5.c // Convert a lower case letter to an upper case letter
Ch. 4 Operators
Operators, Precedence, math functions
Ch. 5 Standard Input and Output
scanf(), printf()
Ch. 6 Condition - if switch
Ch. 7 Loop - for, while, do-while
Ch. 8 Arrays
1D, 2D, Matrix
Ch. 9 Strings
String functions - strcpy(), strcmp(), strcat(), atoi()
- ex09-1.c // String functions - strcpy(), strcmp(), strcat(), atoi()
- ex09-2.c // String concatenation - str1 + str3 by using strcat()
- ex09-3_stu.c // String concatenation - str1 + str3 without strcat()
- ex09-4_stu.c // Implement strlen()
- ex09-5.c // Find a min letter
Ch. 10 Functions
Implement user-defined functions - sum(), factorial(), sort()
Ch. 11 Structures
Ch. 12 Pointers
Ch. 13 File Managements
Ch. 14 Dynamic Memory Allocation and Linked Lists
Ch. 15 Preprocessor
#