SlideShare a Scribd company logo
1 of 16
Download to read offline
PU Study
                         in summer vacation

              Leader : 홍범진
              Members : 김동우, 김현우, 오승택, 이미지, 이희민




Thursday, May 12, 2011
Preview

                    •    Review basic C language
                    • Data Structure




Thursday, May 12, 2011
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
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
C - I/O
                    • Input
                         - scanf
                         - gets
                         - file input
                    • output
                         - printf
                         - puts
                         - file output


Thursday, May 12, 2011
What is the meaning of
                  ‘f’ in printf and scanf?




Thursday, May 12, 2011
What is the meaning of
                  ‘f’ in printf and scanf?
                         Answer
                         - The meaning of ‘f’ is ‘formatted’.




Thursday, May 12, 2011
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
Function
                     Prototype
                         int add (int, int)




Thursday, May 12, 2011
Function
                     Prototype
                     int
                    add
                (int, int)




Thursday, May 12, 2011
Function
                     Prototype
                     int     return type
                    add
                (int, int)




Thursday, May 12, 2011
Function
                     Prototype
                     int     return type
                    add      name of function
                (int, int)




Thursday, May 12, 2011
Function
                     Prototype
                     int     return type
                    add      name of function
                (int, int)   parameter




Thursday, May 12, 2011
Function
                         int add (int a, int b
                                  int        b)




Thursday, May 12, 2011
Function
                          int add (int a, int b) {
                           int a, b, c;
                           return c = a + b;
                         }




Thursday, May 12, 2011
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

More Related Content

Similar to 100701 1st (7)

2011 july-nyc-gtug-go
2011 july-nyc-gtug-go2011 july-nyc-gtug-go
2011 july-nyc-gtug-go
 
"Data in the Digital Age" - Hadoop Big Data Meetup
"Data in the Digital Age" - Hadoop Big Data Meetup"Data in the Digital Age" - Hadoop Big Data Meetup
"Data in the Digital Age" - Hadoop Big Data Meetup
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
HootSuite Dev 2
HootSuite Dev 2HootSuite Dev 2
HootSuite Dev 2
 
The Ceylon Type System - Gavin King presentation at QCon Beijing 2011
The Ceylon Type System - Gavin King presentation at QCon Beijing 2011The Ceylon Type System - Gavin King presentation at QCon Beijing 2011
The Ceylon Type System - Gavin King presentation at QCon Beijing 2011
 
The Ceylon Type System
The Ceylon Type SystemThe Ceylon Type System
The Ceylon Type System
 
"The Reality of Digital Science"
"The Reality of Digital Science""The Reality of Digital Science"
"The Reality of Digital Science"
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

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
  • 5. C - I/O • Input - scanf - gets - file input • output - printf - puts - file output 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