SlideShare a Scribd company logo
1 of 14
ARVIN santos buendia
OBJECTIVES
INTRODUCTION TO TURBO-C
INTRODUCTION TO TURBO-C
TURBO-C CODE STRUCTURE COMMENTS PREPROCESSOR DIRECTIVE BEGIN BLOCK OF main( ) FUNCTION END BLOCK OF main( ) FUNCTION VARIABLE DECLARATION FUNCTION NAME BODY OF THE PROGRAM Hello Arvin _ _ Hello SUPERMAN _
SCREEN OUTPUT FUNCTION printf( );  – is used to write information on the screen printf( <format string> ); <format string>  is a string that begins and ends with double quotes “” printf(“ARVIN santos BUENDIA”); ARVIN santos BUENDIA _ _
SCREEN OUTPUT FUNCTION An  ESCAPE  SEQUENCE  that starts with the escape code “ ” The backslash indicates that the characters that will follow is  NOT TO BE PROCESS  in the  ORDINARY WAY   ESCAPE SEQUENCE  new line  tab  double quote  backslash
SCREEN OUTPUT FUNCTION printf(“arvin   SUPERMAN”); arvin _ _ _ SUPERMAN _
SCREEN OUTPUT FUNCTION printf(“arvin    SUPERMAN”); arvin _ _ _ SUPERMAN _ _
SCREEN OUTPUT FUNCTION printf(“arvin   SUPERMAN”); arvin _ _ SUPERMAN _ _
SCREEN OUTPUT FUNCTION printf(“arvin  “  SUPERMAN”); arvin _ _ START OF THE FORMAT STRING END OF THE FORMAT STRING SYNTAX ERROR NEXT CODE
ESCAPE SEQUENCE START OF THE FORMAT STRING SCREEN OUTPUT FUNCTION printf(“arvin  amp;quot;  SUPERMAN”); arvin _ _ “ SUPERMAN _ END OF THE FORMAT STRING NEXT CODE
ESCAPE SEQUENCE START OF THE FORMAT STRING SCREEN OUTPUT FUNCTION printf(“arvin   SUPERMAN”); arvin _ _ UPERMAN _ END OF THE FORMAT STRING NEXT CODE
ASSESSMENT printf(“di nga ako nagpaputok”); printf(“nun bagong taon… baket???”); printf(“kasi sumasabog na ang puso ko sa’yo”); di nga ako nagpaputok _ _ _ _ nun _ _ bagong taon… _ _ baket _ _ ??? _ _ kasi _ _ sumasabog na ang _ “ puso ko _ “ _ sa’yo _

More Related Content

Viewers also liked

Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)
Hanielle Cheng
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
sammmm1
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
sammmm1
 
49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)
ankitamamta
 
Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1
Hanielle Cheng
 

Viewers also liked (6)

Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
 
49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)49045118 project-of-coca-cola-110406035123-phpapp01(4)
49045118 project-of-coca-cola-110406035123-phpapp01(4)
 
Industrial revolution
Industrial revolutionIndustrial revolution
Industrial revolution
 
Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1
 

Similar to Introduction to turbo c

WindowsユーザのためのはじめてのPerlプログラミング
WindowsユーザのためのはじめてのPerlプログラミングWindowsユーザのためのはじめてのPerlプログラミング
WindowsユーザのためのはじめてのPerlプログラミング
Yosuke HASEGAWA
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io
웅식 전
 

Similar to Introduction to turbo c (20)

Input Output Management In C Programming
Input Output Management In C ProgrammingInput Output Management In C Programming
Input Output Management In C Programming
 
Source Code of Building Linux IPv6 DNS Server (Complete Sourcecode)
Source Code of Building Linux IPv6 DNS Server (Complete Sourcecode)Source Code of Building Linux IPv6 DNS Server (Complete Sourcecode)
Source Code of Building Linux IPv6 DNS Server (Complete Sourcecode)
 
WindowsユーザのためのはじめてのPerlプログラミング
WindowsユーザのためのはじめてのPerlプログラミングWindowsユーザのためのはじめてのPerlプログラミング
WindowsユーザのためのはじめてのPerlプログラミング
 
Concepts of C [Module 2]
Concepts of C [Module 2]Concepts of C [Module 2]
Concepts of C [Module 2]
 
Argon walkthru 1-26
Argon walkthru 1-26Argon walkthru 1-26
Argon walkthru 1-26
 
printf("%s from %c to Z, in %d minutes!\n", "printf", 'A', 45);
printf("%s from %c to Z, in %d minutes!\n", "printf", 'A', 45);printf("%s from %c to Z, in %d minutes!\n", "printf", 'A', 45);
printf("%s from %c to Z, in %d minutes!\n", "printf", 'A', 45);
 
Dcn code and output
Dcn code and outputDcn code and output
Dcn code and output
 
miniLesson on the printf() function
miniLesson on the printf() functionminiLesson on the printf() function
miniLesson on the printf() function
 
Software Vulnerabilities in C and C++ (CppCon 2018)
Software Vulnerabilities in C and C++ (CppCon 2018)Software Vulnerabilities in C and C++ (CppCon 2018)
Software Vulnerabilities in C and C++ (CppCon 2018)
 
Presentation1
Presentation1Presentation1
Presentation1
 
Hunting for malicious modules in npm - NodeSummit
Hunting for malicious modules in npm - NodeSummitHunting for malicious modules in npm - NodeSummit
Hunting for malicious modules in npm - NodeSummit
 
input
inputinput
input
 
人力
人力人力
人力
 
Data Structures : array operations in c program
Data Structures : array operations in c program Data Structures : array operations in c program
Data Structures : array operations in c program
 
Practical File of C Language
Practical File of C LanguagePractical File of C Language
Practical File of C Language
 
01 Jo P Jan 07
01 Jo P Jan 0701 Jo P Jan 07
01 Jo P Jan 07
 
Unit 5 Foc
Unit 5 FocUnit 5 Foc
Unit 5 Foc
 
Unit2 C
Unit2 C Unit2 C
Unit2 C
 
Unit2 C
Unit2 CUnit2 C
Unit2 C
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io
 

More from Hanielle Cheng

4th quarter periodic test review in math3
4th quarter periodic test review in math34th quarter periodic test review in math3
4th quarter periodic test review in math3
Hanielle Cheng
 
4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry
Hanielle Cheng
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
Hanielle Cheng
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
Hanielle Cheng
 
The industrial revolution 2
The industrial revolution 2The industrial revolution 2
The industrial revolution 2
Hanielle Cheng
 
Scientific revolution 2
Scientific revolution 2Scientific revolution 2
Scientific revolution 2
Hanielle Cheng
 
Exploration and colonization
Exploration and colonizationExploration and colonization
Exploration and colonization
Hanielle Cheng
 
Effects of exploration
Effects of explorationEffects of exploration
Effects of exploration
Hanielle Cheng
 
Effects of colonization
Effects of colonizationEffects of colonization
Effects of colonization
Hanielle Cheng
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
Hanielle Cheng
 

More from Hanielle Cheng (20)

4th quarter periodic test review in math3
4th quarter periodic test review in math34th quarter periodic test review in math3
4th quarter periodic test review in math3
 
4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry
 
Quiz no.5
Quiz no.5Quiz no.5
Quiz no.5
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
 
The renaissance
The renaissanceThe renaissance
The renaissance
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
 
The industrial revolution 2
The industrial revolution 2The industrial revolution 2
The industrial revolution 2
 
Scientific revolution
Scientific revolutionScientific revolution
Scientific revolution
 
Scientific revolution 2
Scientific revolution 2Scientific revolution 2
Scientific revolution 2
 
Exploration and colonization
Exploration and colonizationExploration and colonization
Exploration and colonization
 
Effects of exploration
Effects of explorationEffects of exploration
Effects of exploration
 
Effects of colonization
Effects of colonizationEffects of colonization
Effects of colonization
 
Early renaissance 3
Early renaissance 3Early renaissance 3
Early renaissance 3
 
Counter reformation
Counter reformationCounter reformation
Counter reformation
 
Age of reason
Age of reasonAge of reason
Age of reason
 
Columbian exchange
Columbian exchangeColumbian exchange
Columbian exchange
 
The high renaissance
The high renaissanceThe high renaissance
The high renaissance
 
Variable declaration
Variable declarationVariable declaration
Variable declaration
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Operators
OperatorsOperators
Operators
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

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...
 
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
 
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
 
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...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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 ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
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...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

Introduction to turbo c

  • 5. TURBO-C CODE STRUCTURE COMMENTS PREPROCESSOR DIRECTIVE BEGIN BLOCK OF main( ) FUNCTION END BLOCK OF main( ) FUNCTION VARIABLE DECLARATION FUNCTION NAME BODY OF THE PROGRAM Hello Arvin _ _ Hello SUPERMAN _
  • 6. SCREEN OUTPUT FUNCTION printf( ); – is used to write information on the screen printf( <format string> ); <format string> is a string that begins and ends with double quotes “” printf(“ARVIN santos BUENDIA”); ARVIN santos BUENDIA _ _
  • 7. SCREEN OUTPUT FUNCTION An ESCAPE SEQUENCE that starts with the escape code “ ” The backslash indicates that the characters that will follow is NOT TO BE PROCESS in the ORDINARY WAY   ESCAPE SEQUENCE new line tab double quote backslash
  • 8. SCREEN OUTPUT FUNCTION printf(“arvin SUPERMAN”); arvin _ _ _ SUPERMAN _
  • 9. SCREEN OUTPUT FUNCTION printf(“arvin SUPERMAN”); arvin _ _ _ SUPERMAN _ _
  • 10. SCREEN OUTPUT FUNCTION printf(“arvin SUPERMAN”); arvin _ _ SUPERMAN _ _
  • 11. SCREEN OUTPUT FUNCTION printf(“arvin “ SUPERMAN”); arvin _ _ START OF THE FORMAT STRING END OF THE FORMAT STRING SYNTAX ERROR NEXT CODE
  • 12. ESCAPE SEQUENCE START OF THE FORMAT STRING SCREEN OUTPUT FUNCTION printf(“arvin amp;quot; SUPERMAN”); arvin _ _ “ SUPERMAN _ END OF THE FORMAT STRING NEXT CODE
  • 13. ESCAPE SEQUENCE START OF THE FORMAT STRING SCREEN OUTPUT FUNCTION printf(“arvin SUPERMAN”); arvin _ _ UPERMAN _ END OF THE FORMAT STRING NEXT CODE
  • 14. ASSESSMENT printf(“di nga ako nagpaputok”); printf(“nun bagong taon… baket???”); printf(“kasi sumasabog na ang puso ko sa’yo”); di nga ako nagpaputok _ _ _ _ nun _ _ bagong taon… _ _ baket _ _ ??? _ _ kasi _ _ sumasabog na ang _ “ puso ko _ “ _ sa’yo _