C program to sort an array using selection sort
#include <stdio.h> #define N 100 void sort(int [],int); main() { int i,n; int a[N]; printf("Enter the size of the ar...
Hello guys, I am Dreek. In this blog, I will post programs in various languages which will be useful for students.
#include <stdio.h> #define N 100 void sort(int [],int); main() { int i,n; int a[N]; printf("Enter the size of the ar...
#include <stdio.h> #define N 100 void quicksort(int [],int,int); int partition(int [],int,int); main() { int i,n; int a[N]...
#include <stdio.h> int power(int,int); main() { int x,y,c; printf("Enter the value of x\n"); scanf("%d...
#include <stdio.h> #include<string.h> #define N 50 void STRING_MATCH(char t[],char p[]) { int tlen,plen,i,j,limit; pl...
#include <stdio.h> #include<math.h> void nqueen(int,int); int place(int,int); int x[10]; main() { int n; printf(...
#include <stdio.h> #define N 100 void mergesort(int [],int,int); void merge(int [],int,int,int); main() { int i,n; int a[N...
#include<stdio.h> typedef struct STR { int m[10][10]; int s[10][10]; }mat; void matrix_chain_order(int [],int); main() ...
#include<stdio.h> main() { int i,k,n; printf("Enter the size of the array\n"); scanf("%d",&n); in...
#include <stdio.h> #define N 100 void sort(int [],int); main() { int i,n; int a[n]; printf("Enter the size of the ar...
#include <stdio.h> #define N 100 void heapsort(int [],int); void heapify(int [],int,int); main() { int i,n; int a[N]; pr...
#include<stdio.h> #define N 20 void graph_colour(int); int is_safe(int); int adj[N][N],x[N],n,m; main() { int i,j; print...
#include<stdio.h> main() { int i,t,c,j,k,n; printf("Enter the size of the array\n"); scanf("%d",&n)...
#include<stdio.h> #include<conio.h> #include<stdlib.h> struct list { struct list *prev; int info; ...
#include<stdio.h> #include<conio.h> #include<stdlib.h> struct list { int info; struct list *next; ...