factorial of a number
#include<stdio.h>
#include<conio.h>
void main()
{
int a[5],i,n,b=1,l;
clrscr();
for(i=0;i<5;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<5;i++)
{
b=a[i];
l=a[i]-1;
...
Friday, 12 May 2017
Monday, 8 May 2017
Implementation of linked list using C

Implementation of linked list
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void beg_insertion();
void end_insertion();
void beg_deletion();
void end_deletion();
void...
Saturday, 6 May 2017
implement of merge sort in simplest way

Merge sort
#include <stdio.h>
#include <conio.h>
void main( )
{
int a[5] = { 13, 5, 6, 3, 56 } ;
int b[5]...
Friday, 5 May 2017
implement of stack using c

implement of stack using c
#include<stdio.h>
#include<conio.h>
#define MAX 3
int st[MAX],top=-1;
void push(int st[]);
void pop(int st[]);
void display(int st[]);
void main()
{
int...
Thursday, 4 May 2017
program of linear search

linear search
#include<stdio.h>
#include<conio.h>
#define size 5
void main()
{
int a[size],i,pos=-1,val;
clrscr();
printf("enter the element");
for(i=0;i<size;i++)
{
...
Wednesday, 3 May 2017
insertion sort using c

INSERTION SORT USING C
#include<stdio.h>
#include<conio.h>
#define size 5
void main()
{
int i,j,temp,a[size];
clrscr();
printf("enter the element");
for(i=0;i<size;i++)
scanf("%d",&a[i]);
for(i=0;i<size;i++)
{
j=i;
while(j>0...
Tuesday, 2 May 2017
Find the length of a string

length of a string
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str[10],length,i=0;
clrscr();
printf("\nenter the string");
gets(str);
while(str[i]!='\0')
...