Posts

For beginners turbo c compiler is the best.  Download software for compiler  CLICK HERE

ASCII CHART

Image

PRINT HELLO WORLD

Image
PROGRAM-: #include(stdio.h)        //*use < > brackets instead of ( ) these. #include(conio.h)        //*use < > brackets instead of ( ) these. void main(); { clrscr(); printf("HELLO WORLD"); getch(); } HINTS- crlscr is used to clear the previously printed program, getch is used to hold the screen because speed of program is very fast and is not visible to us.   TO GET THE OUTPUT CLICK RUN IN TOOLBAR

🔁ESCAPE SEQUENCE

It is a method to print those characters which cannot be printed directly. Back slash ( \ ) - used for escape sequence.   Forward slash ( / )- used for division operator. NEW LINE -  \n (printing will be in new line) TAB - \t (new word will be printed after 4 spaces) BACKSPACE - \b  (previous word will be deleted) BELL CHARACTER - \a (creates a beep sound but could hear in old pc's) " - \" (when we want output like - hello"world) \ - \\  ( when we want output like - male/female)

TOKENS

A token is a smallest independent unit of program. (also words in c language is called tokens) Tokens are of 5 types➜ Keywords/Reserved words Identifiers Literals Operators Separators  Keywords/Reserved words -: These are the tokens which have fixed meaning in a language.                                                                                                 e.g -:  void,if,for,while etc. Identifiers                               -: These are programmer made tokens. Literals                                    -: These are the constants used in c program. Operators                                -: These are the tokens that computes and then return.                                                                                                                   e.g -: +,-,*,<,>,>=,<=  separators                                 -:These are the tokens that separates one section of code from