[C] int array
```c #include
```c #include
```c #include
float
initialization
assignment
```c #include
```c #include
```c #include
```c #include
int array
```c #include
scanf
getchar : Read character
scanf : Formatted Read printf : Formatted Write
```c #include
Integer Type Print
```c #include
putchar
Arithmetic Operators ```c #include
Variable Declaration ```c #include
Floating Point Type Print ```c #include
Integer Type Print
printf()
Conditional Statements ```swift import UIKit
Superclass and subclass parent class is super class child class is subclass child class can use all things of parent class single inheritance.
Extension add property
Closure Closure is independent code block
Property need the initial value. initial value Initialize to init optional variable, constant
Method function in class, struct and enum.
For loop for var i = 0; i < 10; i+=1 { print(i) } // error // C-style for statement has been removed in Swift 3 ```swift for i in 0..<10 { pri...
If var x = 10 if x > 5 { print("greater than 5") } If -else var x = 2 if x % 2 == 0 { print("even number") } else { print("odd number") }
Upcasting (as) Child instance as parent class Safe casting
Int 10 Int Store Int-type values
var Values assigned to variables can be changed var myVar = 10 // :Int var x = 0.0, y = 0.0, z = 0.0
Data type basic Saving Numbers in a Swift Program var num : Int = 10 var num = 10 If there is an initial value as shown above, the com...
Print print(1, 2, 3, 4, 5) // 1 2 3 4 5 print(1, 2, 3, 4, 5, separator: "-") // 1-2-3-4-5 separator : print the string between each item
I/O Mechanisms Processor controlled memory access Polling (Programmed I/O) Interrupt Direct Memory Access (DMA)
Disk System Disk pack Sector Track Cylinder Platter Surface Disk drive Head Arm Positi...
Virtual memory Non-continuous allocation Paging/Segmentation system
Virtual Storage (Memory) Non-continuous allocation
Memory Background processor registers <-> (word) cache memory <-> main memory <-> (block) auxiliary storage(Disk)
Deadlock Blocked / Asleep state Deadlock state Deadlock vs Starvation
Process Synchronization Multiple programming system Synchronization
FCFS(First-Come-First-Service) Non-preemptive scheduling Scheduling criteria ready queue High resource utilization Low s...
Multi-programming Multiple processes exist in the system Select a process to allocate resources Scheduling Resource Management ...
Thread Light Weight Process(LWP) Components Thread ID Register set Stack Benefits of Thread Responsiveness Resou...
Job vs Process Job / Program Programs + Data to run Status before the execution request to the computer system
Operating System User Interface CUI GUI EUCI
Computer Hardware Processor CPU GPU Memory RAM, ROM HDD, SSD I/O Device Keyboard, Mouse ...
I/O Mechanisms Processor controlled memory access Polling (Programmed I/O) Interrupt Direct Memory Access (DMA)
Disk System Disk pack Sector Track Cylinder Platter Surface Disk drive Head Arm Positi...
Virtual memory Non-continuous allocation Paging/Segmentation system
Virtual Storage (Memory) Non-continuous allocation
Memory Background processor registers <-> (word) cache memory <-> main memory <-> (block) auxiliary storage(Disk)
Deadlock Blocked / Asleep state Deadlock state Deadlock vs Starvation
Process Synchronization Multiple programming system Synchronization
FCFS(First-Come-First-Service) Non-preemptive scheduling Scheduling criteria ready queue High resource utilization Low s...
Multi-programming Multiple processes exist in the system Select a process to allocate resources Scheduling Resource Management ...
Thread Light Weight Process(LWP) Components Thread ID Register set Stack Benefits of Thread Responsiveness Resou...
Job vs Process Job / Program Programs + Data to run Status before the execution request to the computer system
Operating System User Interface CUI GUI EUCI
Computer Hardware Processor CPU GPU Memory RAM, ROM HDD, SSD I/O Device Keyboard, Mouse ...
Ctrl + z, Ctrl + c
cat, tac
Command form Command [option] argument1 argument2 ...
Ctrl + z, Ctrl + c
cat, tac
Command form Command [option] argument1 argument2 ...
For loop for var i = 0; i < 10; i+=1 { print(i) } // error // C-style for statement has been removed in Swift 3 ```swift for i in 0..<10 { pri...
If var x = 10 if x > 5 { print("greater than 5") } If -else var x = 2 if x % 2 == 0 { print("even number") } else { print("odd number") }
Variable Declaration
Printf()
var Values assigned to variables can be changed var myVar = 10 // :Int var x = 0.0, y = 0.0, z = 0.0
var Values assigned to variables can be changed var myVar = 10 // :Int var x = 0.0, y = 0.0, z = 0.0
var Values assigned to variables can be changed var myVar = 10 // :Int var x = 0.0, y = 0.0, z = 0.0
Int 10 Int Store Int-type values
Upcasting (as) Child instance as parent class Safe casting
If var x = 10 if x > 5 { print("greater than 5") } If -else var x = 2 if x % 2 == 0 { print("even number") } else { print("odd number") }
For loop for var i = 0; i < 10; i+=1 { print(i) } // error // C-style for statement has been removed in Swift 3 ```swift for i in 0..<10 { pri...
Method function in class, struct and enum.
Property need the initial value. initial value Initialize to init optional variable, constant
Closure Closure is independent code block
Extension add property
Superclass and subclass parent class is super class child class is subclass child class can use all things of parent class single inheritance.
Conditional Statements ```swift import UIKit
Conditional Statements ```swift import UIKit
Conditional Statements ```swift import UIKit
Conditional Statements ```swift import UIKit
Arithmetic Operators ```c #include