C Programming for beginners : How to get started
with C Language
How to compile a C program
Here we will teach how you can start and make your first C program. C language is middle level language`. To run a C program you need to have a C Compiler. Compiler is used to interpret our syntax (our program) into the machine code so that machine can understand our code. When we save the program an exe file along with Obj file is made. OBJ file is the machine code. You can easily download a Borland C compiler through internet. Log onto www.borland.com otherwise try searching on Google. After downloading its latest version, install c language on your system. DOWNLOAD COMPILER HERE After installing it you will find under TC folder - BGI | BIN | INCLUDE | LIB folders. Here we will only consider the BIN folder and the INCLUDE Folder for the moment. BIN folder contains TC.EXE. Execute this file then you will see something like we see below. All code written in c language is written in lower case letters. Now Lets make a program in C, here's what you need to do.
Go to File menu and click new as shown below
This is what you will see after clicking on new. (a blue colored screen or text writing screen, this is the place where you will write your first c program).
By default the page opens as NONAME00.CPP rename the file and save it by your name with extension as 'c' e.g name.c as shown below
Now write this code as shown below in your TC. This c program on compilation will print your name. For compiling this c program press ALTF9.
The output on compilation will print this as follows
This is your first c program which prints your name. FREE C PROGRAMS : Get all Free C language Source code, Programs here!! Latest Added C Programs
How to use char data type?
How to use strlen in strings?
Difference between signed int, int and unsigned int.