introduction to turbo c
DESCRIPTION
for 4th quarter LT computerTRANSCRIPT
![Page 1: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/1.jpg)
Powerpoint TemplatesARVINsantossantosbuendiabuendia
![Page 2: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/2.jpg)
Powerpoint Templates
OBJECTIVES
![Page 3: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/3.jpg)
Powerpoint Templates
INTRODUCTION TO TURBO-C
![Page 4: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/4.jpg)
Powerpoint Templates
INTRODUCTION TO TURBO-C
![Page 5: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/5.jpg)
Powerpoint Templates
TURBO-C CODE STRUCTURECOMMENTSCOMMENTS
PREPROCESSOR DIRECTIVEPREPROCESSOR DIRECTIVE
BEGIN BLOCK OF main( ) FUNCTIONBEGIN BLOCK OF main( ) FUNCTION
END BLOCK OF main( ) FUNCTIONEND BLOCK OF main( ) FUNCTION
VARIABLE DECLARATIONVARIABLE DECLARATION
FUNCTION NAMEFUNCTION NAME
BODY OF THE PROGRAM
BODY OF THE PROGRAM
Hello Arvin_ _Hello SUPERMAN
_
![Page 6: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/6.jpg)
Powerpoint Templates
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_ _
![Page 7: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/7.jpg)
Powerpoint Templates
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
![Page 8: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/8.jpg)
Powerpoint Templates
SCREEN OUTPUT FUNCTION
printf(“arvin \nSUPERMAN”);
arvin_ __SUPERMAN_
![Page 9: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/9.jpg)
Powerpoint Templates
SCREEN OUTPUT FUNCTION
printf(“arvin \n SUPERMAN”);
arvin_ __SUPERMAN__
![Page 10: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/10.jpg)
Powerpoint Templates
SCREEN OUTPUT FUNCTION
printf(“arvin \tSUPERMAN”);
arvin_ _ SUPERMAN__
![Page 11: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/11.jpg)
Powerpoint Templates
SCREEN OUTPUT FUNCTION
printf(“arvin “ SUPERMAN”);
arvin_ _
START OF THE FORMAT STRING
END OF THE FORMAT STRING
SYNTAX ERROR
NEXT CODE
![Page 12: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/12.jpg)
Powerpoint Templates
ESCAPE SEQUENCESTART OF THE FORMAT
STRING
SCREEN OUTPUT FUNCTION
printf(“arvin \" SUPERMAN”);
arvin_ _“SUPERMAN_
END OF THE FORMAT STRING
NEXT CODE
![Page 13: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/13.jpg)
Powerpoint Templates
ESCAPE SEQUENCESTART OF THE FORMAT
STRING
SCREEN OUTPUT FUNCTION
printf(“arvin \\SUPERMAN”);
arvin_ _\SUPERMAN_
END OF THE FORMAT STRING
NEXT CODE
![Page 14: Introduction to turbo c](https://reader038.vdocuments.net/reader038/viewer/2022102804/546fcb25af79591b498b4639/html5/thumbnails/14.jpg)
Powerpoint Templates
ASSESSMENTprintf(“\\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_