Introduction to C Programming

Starting today I am going to write a series on C programming. I wish to cover all the basics and will mostly write programs. As a user I would like you to put your valuable comments, doubts and opinions to make this more resourceful and fun to learn. Now we are ready to start. I would try to make this tutorial colloquial for easy understanding and reference. If you want to go in depth about some topic, you could always look it up on Google.

What is C Programming?

C is a programming language developed by Dennis Ritchie in At&T Bell labs. It is used for many purposes and has applications you cannot even imagine. A lot of platforms use C/C++ for development. It is a structured and a low level language. You can read more about it on Wikipedia:

Read more about C(Programming language) Source: Wikipedia

Getting started with C Programming

C Compiler
Courtesy: w3resource

Installing an IDE and a Compiler

IDE which stands for Integrated Development Environment is the software or application where you can write your program. Depending on the type of IDE, you may have a lot of exciting features like syntax highlighting, etc

Turbo C Compiler is the most common and renowned compiler used for ages. Unfortunately, it does not support on Windows versions from Vista. Of course, there are many ways of getting it done. Let’s start for Windows.

Installing on Windows

Windows XP/Vista:

Turbo C is the best compiler for Windows XP/Vista. You can download it here.

Just unzip it and follow standard installation procedure. The problem with Windows Vista is the fullscreen issue. I am sure there are solutions online.

Windows 7/8:

Turbo C can be used on Windows 7 using DOSBox. DOSBox is an emulator of DOS operating systems. For installation and download you can refer to this awesome post.

Linux

You don’t need to download anything. That’s the reason why I love linux. GCC is an awesome inbuilt compiler based in Linux systems. Just write your program using Gedit or Nano and compile it using gcc.

Mac OS

I am not a Mac OS X user but I guess you can compile C files using Apple Developer tools. GCC is also available for Mac OS X but it’s not inbuilt. Look it up online or donate me a Macbook for further help.

Android

C4Droid is an awesome android application that helps you to compile C programs on any android device. It’s paid. You can find it here.

iOS

No luck here unless you jailbreak your iPhone. If you already have use GCC.

Writing your first C program

Now that you have installed your compiler and other required stuff, it’s time to write a Hello World program.

/*My first program

Creation date: 11-Jun-2013

Programmer: Harsh Shah*/

#include"stdio.h"

void main(){ //Main function;)

printf("Hello Readers. Welcome to ReadMeNow's introduction to C programming");

getch();

} //End of Program

Output

Hello Readers. Welcome to ReadMeNow’s introduction to C programming

So that was basic C Installation and a Hello World program. Stay tuned for more tutorials. Please write to us your valuable suggestions/comments/opinions.

cc languagec programhello worldprogramming
Comments (0)
Add Comment