C Programming Tutorial for Beginners


Founder of C Dennis Ritchie

C is a powerful general-purpose programming language developed at AT & T's Bell Laboratories of USA in 1972.It was designed and written by Dennis Ritchie. C become popular because it is reliable, simple and easy to use.C Programming used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.

Although numerous computer languages are used for writing computer applications, the computer programming language, C, is the most popular language worldwide. Everything from micro controllers to operating systems is written in C since it’s very flexible and versatile, allowing maximum control with minimal commands. If you are interested in a career in computer programming, it would be wise to start by learning the C programming language.


C is a procedural programming language. It was initially developed by Dennis Ritchie as a system programming language to write operating system. The main features of C language include low-level access to memory, simple set of keywords, and clean style, these features make C language suitable for system programming like operating system or compiler development.

C language is considered as the mother language of all the modern programming languages because most of the compilers, JVMs, Kernels, etc. are written in C language, and most of the programming languages follow C syntax, for example, C++, Java, C#, etc.

Code::Blocks or C and C++ Programming


How to install Code Blocks for C and C++ Programming

Code::Blocks is a free, open-source cross-platform IDE that supports multiple compilers including GCC, Clang and Visual C++. It is developed in C++ using wxWidgets as the GUI toolkit. Using a plugin architecture, its capabilities and features are defined by the provided plugins.Click Here to download Code::Blocks

Why we using Code::Blocks for C Programming

Compiling and executing C programs using command prompt is difficult to programmers.Once you got strong hold to compile and execute C programs using command line, it’s time to switch to IDE. However, I always recommend a beginner to use command prompt for sometime for compiling and executing C programs.CodeBlocks is a powerful IDE for creating, compiling, executing and debugging C/C++ programs.


Visual Studio Code for C and C++ Programming


How to install Visual Studio Code for C and C++ Programming

Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS and its is a lightweight but powerful source code editor which runs on your desktop.Click Here to download.To run C and C++ Programming in VS Code we need to install GCC with MinGW.Here is the tutorial link by Visual studio code team

Why We use Visual Studio Code

Visual Studio Code features a lightning fast source code editor, perfect for day-to-day use. With support for hundreds of languages, VS Code helps you be instantly productive with syntax highlighting, bracket-matching, auto-indentation, box-selection, snippets, and more. Intuitive keyboard shortcuts, easy customization and community-contributed keyboard shortcut mappings let you navigate your code with ease.


List of Programs


Sample Programs


Switch Case in C


Conditional Operators in C


Goto Statement in C


While Loop Example Programs


Looping Statements in C

For Loop Example Programs


Array Examples in C

One Dimensional Array


Two Dimensional Array in C


String Example Programs in C


Functions Example Programs in C