How to create and run C program using CodeBlocks

Compiling and executing C programs using command prompt has always been a nightmare to programmers. It is time taking process.

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. In previous post, I explained installation and configuration of CodeBlocks. In this post we will move further and see how to create, compile and run a C program in CodeBlocks.

Read more

How to compile and run C program using command line in Windows

This is one of the most frequently asked question to me. Creating and compiling a C program using an IDE is like waving some magic wand. However, a beginner must know how to compile and run C programs using command line in Windows based operating system.

To create a C program using command line you need two basic software’s.

  1. A text editor (such as Notepad or Notepad++ ).
  2. A C compiler.

Read more

Install and configure CodeBlocks with C compiler

Programming in C is fun and interesting. In this entire series of C programming tutorial. You will create, edit, compile and execute many C programs. Before we begin to learn about C programs, you must configure your computer with C compiler.

To create and execute a C program you require minimum two software’s.

  1. A text editor (such as Notepad, Notepad++, Gedit, TextEdit, Sublime etc.)
  2. A C compiler (Optionally CodeBlocks IDE).

In this post, I will discuss about C compiler and steps to setup C compiler along with CodeBlocks in your machine.

Read more

High level languages – advantages and disadvantages

High level language is abbreviated as HLL. High level languages are similar to the human language. Unlike low level languages, high level languages are programmers friendly, easy to code, debug and maintain.

High level language provides higher level of abstraction from machine language. They do not interact directly with the hardware. Rather, they focus more on the complex arithmetic operations, optimal program efficiency and easiness in coding.

Read more

Low level languages – advantages and disadvantages

Low level language abbreviated as LLL, are languages close to the machine level instruction set. They provide less or no abstraction from the hardware. A low-level programming language interacts directly with the registers and memory. Since, instructions written in low level languages are machine dependent. Programs developed using low level languages are machine dependent and are not portable.

Read more

Classification of programming languages

Thousands of programming languages have been written till date. Each for some specific purpose. Some programming languages provide less or no abstraction from the hardware. Whereas some provide higher abstraction. To separate programming languages on the basis of level of abstraction from hardware, they are classified into various categories.

Read more

Programming language – history and popular languages

The world of computer science, programming and software development starts here. Before I formally define programming language. Let’s dissect it. Programming language is made of two parts “programming” and “language”. We already learn’t about what is programming. Here we will learn about language. Think for a while and try to define what language means.

Read more

Life cycle of a computer program

A computer program goes through many phases from its development to execution. From the human readable format (source code) to binary encoded computer instructions (machine code). Here in this section, I will be explaining the different phases of a program during its entire lifespan.

Different phases of a computer program
Various phases of a computer program

Read more