


Multi-line comment : /*This is multi-line comment*/Ĭomments in a C program are not executed and ignored.Single line comment: //This is a comment.It is a way for us to add notes to our program. Instructions are executed in the same order in which they are written.Ĭomments are used to clarify something about the program in plain language.All the statements are terminated with a semi-colon.Every program's execution starts from the main function.There are some basic rules which are applicable to all the c programs: Each instruction terminated with a semicolon( ) A c program starts with the main function and executes instructions presents inside it. No special symbol other than underscore is allowedĪll c programs have to follow a basic structure. The first character must be an alphabet or underscore(_).ģ. Similar to that variable in c stores the value of a constant. C is used to develop games, an area where latency is very important, i.e., a computer has to react quickly to user input.Ĭhapter 1: Variables, Constants, and Keywords: VariablesĪ variable is a container that stores a ‘value.’ In the kitchen, we have containers storing rice, dal, sugar, etc.C language is used to program embedded systems where programs need to run faster in limited memory.
#Basic programming language tutorial beginners pdf driver#
C is used to write driver programs for devices like Tablets, Printers, etc.Major parts of Windows, Linux, and other operating systems are written in C.Uses of CĬ is a language that is used to program a wide variety of systems. C was developed by Dennis Ritchie in 1972. C is one of the oldest and finest programming languages. Programming is a way for us to deliver our instructions to the computer. Chapter 0: Introduction What is Programming?Ĭomputer programming is a medium for us to communicate with computers, just like we use Hindi or English to communicate with each other.
