Popular C Codes

Shortest Job First (SJF)

Description C Language: This is a sample code to implement the Shortest Job First Algorithm, Operating System Source Code #include<conio.h> void main() { int n,i,j,a[10],b[10],temp; float sum,avg_w ...

4 Comments. 3439 views since Aug 22, 2008

Hello World using Pointer

Description This a simple code show how to make Hello World application in C with and without using pointers. Source Code /* Simple Version......... */ #include int main() { printf( ...

12 Comments. 3171 views since Jul 29, 2008

B Tree

Description Program of insertion and deletion in B tree...In data structures, a B-tree is a tree data structure that keeps data sorted and allows searches, insertions, and deletions in logarithmic amortized time. Unlike self-balancing binary se ...

0 Comments. 2883 views since Jan 1, 2009

Breath First Search(BFS) and Depth First Search (DFS)

Description THIS CODE IS SIMPLE BUT NOT EASY TO WRITE SO PLEASE BEFORE RUNNING THE PROGRAM SEE THE CODE AND THEN RUN IF YOU DO'NT UNDERSTAND THEN SUMMIT QUERRY IN email address dwarikachandra@gmail.com Source Code <pre name="code" cl ...

0 Comments. 2706 views since Jan 6, 2009

Interconversion of Number System

Description It is a program for conversion of Number System viz. Binary to Decimal,Decimal to Binary,Decimal to Octal, Decimal to Hexadecimal,Octal to Decimal,Octal to Binary,Binary to Octal,Binary to Hexadecimal, Hexadecimal to Binary, Hexadec ...

0 Comments. 2523 views since Sep 4, 2008

Insertion in AVL Tree

Description Program for insertion in AVL tree...n Data Structure, an AVL tree is a self-balancing binary search tree, and it is the first such data structure to be invented. In an AVL tree, the heights of the two child subtrees of any node diff ...

0 Comments. 2491 views since Jan 1, 2009

Regular Falsi (Method of false position) for finding roots of equation

Description it is method to find root as an example equation x^3-2x-5 is taken Source Code #include&lt;stdio.h&gt; #include&lt;conio.h&gt; #include&lt;math.h&gt; float f(float x); void main() ...

0 Comments. 2148 views since Dec 28, 2008

Additive Cipher

Description This program Encrypts the given Text and Substitutes its Letters by some other ones. Source Code /* rot13 algorithm. Very Simple and Interesting */ #include&lt;stdio.h&gt; #define ROT 13 ...

0 Comments. 1721 views since Sep 4, 2008

Insertion Sort

Description The insertion sort works just like its name suggests - it inserts each item into its proper place in the final list. The simplest implementation of this requires two list structures - the source list and the list into which sorted i ...

0 Comments. 1713 views since Aug 20, 2008

First Come First Serve (FCFS)

Description operating system Source Code #include&lt;conio.h&gt; void main() { int a[10],i,j,n; float sum,avg_wait,avg_tat,k; clrscr(); printf(&quot;\nEnter the no of processes=&quot;); scanf(&quot;%d ...

1 Comments. 1707 views since Aug 22, 2008