SlideShare a Scribd company logo
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 \n new line \t tab \” double quote \\ backslash
SCREEN OUTPUT FUNCTION printf(“arvin  \n SUPERMAN”); arvin _ _ _ SUPERMAN _
SCREEN OUTPUT FUNCTION printf(“arvin  \n  SUPERMAN”); arvin _ _ _ SUPERMAN _ _
SCREEN OUTPUT FUNCTION printf(“arvin  \t 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  \&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 _ _ \SUPERMAN _ END OF THE FORMAT STRING NEXT CODE
ASSESSMENT printf(“\\di nga ako nagpaputok\n\n”); printf(“nun \nbagong taon… \nbaket\n???”); printf(“\nkasi\t 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

PPT
Introduction to turbo c
PDF
The Code
PDF
Controlling Technical Debt with Continuous Delivery
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 5
PPT
Paypal + symfony
PPTX
Turbo c++
PPSX
INTRODUCTION TO C PROGRAMMING
Introduction to turbo c
The Code
Controlling Technical Debt with Continuous Delivery
PL/SQL & SQL CODING GUIDELINES – Part 5
Paypal + symfony
Turbo c++
INTRODUCTION TO C PROGRAMMING

Viewers also liked (11)

PPTX
Variable, constant, operators and control statement
PPT
Visual basic 6.0
PPTX
Vb.net (loop structure)
PPTX
Vb decision making statements
PPTX
Introduction to graphics programming in c
PPSX
Control Structures in Visual Basic
PPT
Microsoft visual basic 6
PDF
Computer Graphics 471 Project Report Final
PDF
Visual Basic 6.0
PPTX
Presentation on visual basic 6 (vb6)
PPTX
Variable, constant, operators and control statement
Visual basic 6.0
Vb.net (loop structure)
Vb decision making statements
Introduction to graphics programming in c
Control Structures in Visual Basic
Microsoft visual basic 6
Computer Graphics 471 Project Report Final
Visual Basic 6.0
Presentation on visual basic 6 (vb6)
Ad

Similar to Introduction to turbo c (20)

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

More from Hanielle Cheng (20)

PPSX
4th quarter periodic test review in math3
PPSX
4th quarter periodic test review in trigonometry
PPSX
Quiz no.5
PPSX
World 4 th quarter outline
PPSX
The renaissance
PPSX
The reformation part i
PPSX
The industrial revolution 2
PDF
Scientific revolution
PPT
Scientific revolution 2
PPSX
Renaissannce politicss, lit, and art-1
PPSX
Key answer to longtest (3 rd quarter)
PPSX
Industrial revolution
PPSX
Exploration and colonization
PPSX
Effects of exploration
PPSX
Effects of colonization
PPSX
Early renaissance 3
PPSX
Counter reformation
PPSX
Age of reason
PPSX
Columbian exchange
PPT
The high renaissance
4th quarter periodic test review in math3
4th quarter periodic test review in trigonometry
Quiz no.5
World 4 th quarter outline
The renaissance
The reformation part i
The industrial revolution 2
Scientific revolution
Scientific revolution 2
Renaissannce politicss, lit, and art-1
Key answer to longtest (3 rd quarter)
Industrial revolution
Exploration and colonization
Effects of exploration
Effects of colonization
Early renaissance 3
Counter reformation
Age of reason
Columbian exchange
The high renaissance

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
Chapter 3 Spatial Domain Image Processing.pdf
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.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 \n new line \t tab \” double quote \\ backslash
  • 8. SCREEN OUTPUT FUNCTION printf(“arvin \n SUPERMAN”); arvin _ _ _ SUPERMAN _
  • 9. SCREEN OUTPUT FUNCTION printf(“arvin \n SUPERMAN”); arvin _ _ _ SUPERMAN _ _
  • 10. SCREEN OUTPUT FUNCTION printf(“arvin \t 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 \&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 _ _ \SUPERMAN _ END OF THE FORMAT STRING NEXT CODE
  • 14. ASSESSMENT printf(“\\di nga ako nagpaputok\n\n”); printf(“nun \nbagong taon… \nbaket\n???”); printf(“\nkasi\t sumasabog na ang \”puso ko\” sa’yo”); \ di nga ako nagpaputok _ _ _ _ nun _ _ bagong taon… _ _ baket _ _ ??? _ _ kasi _ _ sumasabog na ang _ “ puso ko _ “ _ sa’yo _