Introduction to turbo c

294 views

Published on

for 4th quarter computer LT reivew

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
294
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to turbo c

  1. 1. ARVIN santos buendia
  2. 2. OBJECTIVES
  3. 3. INTRODUCTION TO TURBO-C
  4. 4. INTRODUCTION TO TURBO-C
  5. 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. 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. 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. 8. SCREEN OUTPUT FUNCTION printf(“arvin n SUPERMAN”); arvin _ _ _ SUPERMAN _
  9. 9. SCREEN OUTPUT FUNCTION printf(“arvin n SUPERMAN”); arvin _ _ _ SUPERMAN _ _
  10. 10. SCREEN OUTPUT FUNCTION printf(“arvin t SUPERMAN”); arvin _ _ SUPERMAN _ _
  11. 11. SCREEN OUTPUT FUNCTION printf(“arvin “ SUPERMAN”); arvin _ _ START OF THE FORMAT STRING END OF THE FORMAT STRING SYNTAX ERROR NEXT CODE
  12. 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. 13. ESCAPE SEQUENCE START OF THE FORMAT STRING SCREEN OUTPUT FUNCTION printf(“arvin SUPERMAN”); arvin _ _ SUPERMAN _ END OF THE FORMAT STRING NEXT CODE
  14. 14. ASSESSMENT printf(“di nga ako nagpaputoknn”); printf(“nun nbagong taon… nbaketn???”); printf(“nkasit sumasabog na ang ”puso ko” sa’yo”); di nga ako nagpaputok _ _ _ _ nun _ _ bagong taon… _ _ baket _ _ ??? _ _ kasi _ _ sumasabog na ang _ “ puso ko _ “ _ sa’yo _

×