Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
100701 1st
1. PU Study
in summer vacation
Leader : 홍범진
Members : 김동우, 김현우, 오승택, 이미지, 이희민
Thursday, May 12, 2011
2. Preview
• Review basic C language
• Data Structure
Thursday, May 12, 2011
3. Review basic C language
• input / output
• for, while, do~while, switch, if
• function
• array, pointer,
memory allocate and free (Dynamic allocate)
• structure
Thursday, May 12, 2011
4. Data structure
• Linked List
- What is the Linked List?
• ADT(Abstract data type)
- Queue
- Stack
• Sort (array, linked list)
- Insertion sort
- Selection sort
- Bubble sort
- etc..
Thursday, May 12, 2011
6. What is the meaning of
‘f’ in printf and scanf?
Thursday, May 12, 2011
7. What is the meaning of
‘f’ in printf and scanf?
Answer
- The meaning of ‘f’ is ‘formatted’.
Thursday, May 12, 2011
8. What is the meaning of
‘f’ in printf and scanf?
Answer
- The meaning of ‘f’ is ‘formatted’.
- Examples -
%c %d %f %s %o %u
%x %X %e %E %g %G
Thursday, May 12, 2011
9. Function
Prototype
int add (int, int)
Thursday, May 12, 2011
10. Function
Prototype
int
add
(int, int)
Thursday, May 12, 2011
11. Function
Prototype
int return type
add
(int, int)
Thursday, May 12, 2011
12. Function
Prototype
int return type
add name of function
(int, int)
Thursday, May 12, 2011
13. Function
Prototype
int return type
add name of function
(int, int) parameter
Thursday, May 12, 2011
14. Function
int add (int a, int b
int b)
Thursday, May 12, 2011
15. Function
int add (int a, int b) {
int a, b, c;
return c = a + b;
}
Thursday, May 12, 2011
16. Function
• return type and parameter
- void
- int, float, double
- bool
- etc..
• name
- It can’t be start with number or special
character (except under bar ‘_’)
- Avoid to name as keyword or library
function (ex. printf, int, return, etc)
Thursday, May 12, 2011