Introduction To C-Language. (2022)

 History of C-language

The C programming language was developed by Dennis Ritchie in 1972 at AT & Bell Laboratories. It was derived from an early programming language named B. The B was developed by Ken Thomspon in 1969-1970. 



Developing a C program

Writing a program in C is not too difficult, however, it requires a good understanding of the development environment of the C language.

Stepwise Approach

1. Install a Compiler for the C-language
▪︎ Turbo C++ 
Turbo C++ is Borland International's implementation of a compiler for the C language. 
 
It provides a complete IDE to create, edit and save programs.
Link to Download Turbo C++: Click here 
Some Shortcut keys are: 
S.NO.SHORTCUTS KEYSACTION
1F1For Help
2.F2Save
3.F3Open
4.F4Go to cursor
5.F5Zoom
6.F6Next
7.F7Trace into
8.F8Step over
9.F9Make
10.F10Menu
11.Alt+XQuit
12.Alt+BkspUndo
13.Shift+Alt+BkspRedo
14.Shift+DelCut
15.Ctrl+InsCopy
16.Shift+InsPaste
17.Ctrl+DelClear
18.Ctrl+LSearch again
19.Alt+F7Previous error
20.Alt+F8Next error
21.Ctrl+F9 'or' Alt+R+EnterRun
22.Ctrl+F2Program reset
23.Alt+F9Compile
24.Alt+F4Inspect
25.Ctrl+F4Evaluate/Modify
26.Ctrl+F3Call stack
27.Ctrl+F8Toggle breakpoint
28.Ctrl+F5Size/Move
29.Alt+F3Close
30.Alt+F5User screen
31.Alt+0List all
32.Shift+F1Index
33.Ctrl+F1Topic search
34.Alt+F1Previous topic
35.Ctrl+F7Add watch
36.Alt+EnterToggle screen mode(Full Screen / Window)*

•You can practice also on mobile by downloading Coding C From Playstore

Basic Structure Of a C program

The structure of a C program is very flexible which increases the power of the language C. C is a structured programming language

• In structured programming languages, the entire logic of the program is divided into several smaller modules, where each module implements a different functionality.

First C Program

#include <stdio.h>          [Preprocessor with standard header file]

Void main(void)              [Main Function]

                                 [Opening delimiter]  [Body of the main function is enclosed in Delimeters ]

         Printf("Hello World!");     [Body of main function containing printf function to display output]

                             [Closing Delimeter]




Preprocessor directives

Include is a preprocessor directive that always begins with a symbol (#) and tells the compiler where to find the meanings of standard identifiers (e.g., printf used in our first program) these meanings are described in standard header files.

Standard Header Files

In C language, standard header files contain the set of predefined standard library functions. The “# include” preprocessing directive is used to include the header files with the “.h” extension in the program.

Here is the table that displays some of the standard header files in the C language,

Sr.No.Header Files & Description
1stdio.h
Input/Output functions
2conio.h
Console Input/Output functions
3stdlib.h
General utility functions
4math. h
Mathematics functions
5string. h
String functions
6ctype.h
Character handling functions
7time.h
Date and time functions
8float.h
Limits of float types
9limits. h
Size of basic types
10wctype.h
Functions to determine the type contained in wide-character data.
Statement terminator
A statement terminator is used to terminate the statement in the C program. It indicates to the compiler where statements end in the program. its symbol is [;]. Which is used after every statement.

----------------------------------------------------------[]---------------------------------------------------------
Feel free to ask any questions in the comment section.

Here is the first article on C-Language. 

Article No. 2 on C-language will be uploaded soon.


Post a Comment

0 Comments