Skip to main content

Posts

Showing posts from December, 2021

C PROGRAMMING

 C language was developed in the year 1972 by Dennis Ritchie at AT&T's Bell Laboratories, USA. C is a procedural language (executes the program step-by-step) Basic features of C language  simple and efficient portable (it can be used in any operating system) extensible (can add user defined functions to it) modularity (not written as a paragraph but in shorter modules) speed (it compiles and gives output quicker) case sensitive ( small 'a' and capital 'A' are taken as two different variables and not as one and the same) Structure of a C program  Documentation section - any comments are added after "//" and is not compiled by the compiler "/* */" is used if the comment is written in more than one line. Linking section - Header file that links library files should be included - #include<stdio.h> Definition section - Assigning a value to a variable - #define pi=3.14. It is difficult to change the value of a number everywhere in the program...