Welcome to Free C Programs  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

Useful Links     Sitemap

 

AVR /8051 Microcontrollers Tutorials in C & Assembly Language

 

What are Command Line Arguments?

 

Command-line arguments are basically arguments sent to the program being called & are given after the name of a program in command-line operating systems and are basically passed in to the program from the operating system.

 

When the function main() is called then

 

arc :gives number of command line arguments

 

argv: full list of command line arguments, or array of arguments

Popular C Programs 

 

Binary Search C program

Binary search algorithm (or binary chop) is a technique for locating a particular value in a sorted list.

 

Creation Of Binary Search tree

Learn How to Create a BST

 

Simple Linked List

In computer science, a linked list is one of the fundamental data structures, and can be used to implement other data structures

 

Doubly Linked List:Doubly Linked List Implementation

 

 
 

For requesting any C source code.vijayendra2@gmail.com

Note: Please note that we will not do homework assignments for you, since you would not benefit from it. We can only give you some guidance. Your source code will be checked and verified by our team, so don't send any copyrighted material.

SNAKE GAME IN C

C program without semicolon
C Program to get IP Address
C Project Ideas
Void Data Type in C C program that adds first seven terms of the following series 1/1! +2/2! + 3/3! + ....
Conditional Operator
C TUTORIAL

 

What is C

C vs C++ vs Java

Program Structure

Data Types in C

Basic Rules of C & C++

Functions in C

If, Else Conditions

Loops in C

Switch Case

Arrays

Pointers

Structures in C

Strings in C

Command Line Arguments

Type Casting

Linked Lists

Recursion

Binary Trees

Inheritance

Templates

File I/O

Object Oriented Programming

Data Structures in C

C interview Questions

 

C++ TUTORIAL

 

What is C++

My First C++ Program

Object Oriented Programming

Structure of a C++ Program

iostream.h Header file

Cout Cin Example

Switch Statement in C++

Loops in C++

Using Namespace Std

Classes / Structures in C++

Functions in C++

Arrays (C++)

Pointers in CPP

Overloading

Constructors

Destructors

Polymorphism

Abstract Class

Dynamic Memory Allocation

C++ Built in Types

Multiple Inheritance

C++ interview questions

Data Structures in C++

 

 

 


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. If you want to program in C++/CPP save page with .CPP extension.(Note: below is a c prog. its not a c++ prog.)

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 ALT-F9.

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!!

 

 

Other Useful Links:

BINARY TREE ANIMATION        AVL TREE ANIMATION        BINARY SEARCH TREE ANIMATION