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.
.png)
Some Shortcut keys are:
| S.NO. | SHORTCUTS KEYS | ACTION |
|---|---|---|
| 1 | F1 | For Help |
| 2. | F2 | Save |
| 3. | F3 | Open |
| 4. | F4 | Go to cursor |
| 5. | F5 | Zoom |
| 6. | F6 | Next |
| 7. | F7 | Trace into |
| 8. | F8 | Step over |
| 9. | F9 | Make |
| 10. | F10 | Menu |
| 11. | Alt+X | Quit |
| 12. | Alt+Bksp | Undo |
| 13. | Shift+Alt+Bksp | Redo |
| 14. | Shift+Del | Cut |
| 15. | Ctrl+Ins | Copy |
| 16. | Shift+Ins | Paste |
| 17. | Ctrl+Del | Clear |
| 18. | Ctrl+L | Search again |
| 19. | Alt+F7 | Previous error |
| 20. | Alt+F8 | Next error |
| 21. | Ctrl+F9 'or' Alt+R+Enter | Run |
| 22. | Ctrl+F2 | Program reset |
| 23. | Alt+F9 | Compile |
| 24. | Alt+F4 | Inspect |
| 25. | Ctrl+F4 | Evaluate/Modify |
| 26. | Ctrl+F3 | Call stack |
| 27. | Ctrl+F8 | Toggle breakpoint |
| 28. | Ctrl+F5 | Size/Move |
| 29. | Alt+F3 | Close |
| 30. | Alt+F5 | User screen |
| 31. | Alt+0 | List all |
| 32. | Shift+F1 | Index |
| 33. | Ctrl+F1 | Topic search |
| 34. | Alt+F1 | Previous topic |
| 35. | Ctrl+F7 | Add watch |
| 36. | Alt+Enter | Toggle 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.
.png)
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 |
|---|---|
| 1 | stdio.h Input/Output functions |
| 2 | conio.h Console Input/Output functions |
| 3 | stdlib.h General utility functions |
| 4 | math. h Mathematics functions |
| 5 | string. h String functions |
| 6 | ctype.h Character handling functions |
| 7 | time.h Date and time functions |
| 8 | float.h Limits of float types |
| 9 | limits. h Size of basic types |
| 10 | wctype.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.

0 Comments