C program to implement Heap Sort Sarfraz Alam January 24, 2018 #include<stdio.h> main() { int i,n,j,root,c,temp; int a[10]; printf("enter the size of array\t"); scanf("%d"... Read More
Pattern matching with c Sarfraz Alam January 24, 2018 #include<stdio.h> #include<string.h> int main() { int s_l,p_l,j,i,c=0; char s[30],p[30]; printf("enter the string:\n... Read More
C program to implement Clock Sarfraz Alam January 22, 2018 #include<conio.h> #include<graphics.h> #include<math.h> #include<dos.h> #define WBC 5 //^watchbackcolor #def... Read More
DEQUEUE implementation with array Sarfraz Alam January 15, 2018 #include<stdio.h> #include<stdlib.h> #define MAX 10 typedef struct DQueue { int A[MAX]; int front; int rear; }qp; qp *... Read More
Implementation of dequeue using linked list Sarfraz Alam January 15, 2018 a double-ended queue is an abstract data type that generalizes a queue, for which elements can be added to or removed from either the fron... Read More
C program to implement a queue using linklist Sarfraz Alam January 15, 2018 #include<stdio.h> #include<stdlib.h> typedef struct nodetype{ int info; struct nodetype *next; }node; node *front=NULL,*rear=N... Read More
Relationship between pointers and Arrays Sarfraz Alam January 13, 2018 #include<stdio.h> #include<conio.h> void main() { int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int *ptr; int i; clrscr()... Read More
Operation on pointers Sarfraz Alam January 13, 2018 #include<stdio.h> #include<conio.h> void main() { int *ptri, *ptrd, i; clrscr(); ptri = ptrd = 1000; printf("Increm... Read More
C program to print ASCII value of characters Sarfraz Alam January 12, 2018 #include<stdio.h> #include<conio.h> void main() { clrscr(); char ch; int i; for(i=1; i<255; i++) { ch=i; printf(&q... Read More
C program to merge two files Sarfraz Alam January 10, 2018 The files which are to be merged are opened in "read" mode and the file which contains content of both the files is opened in &... Read More
C program to show and hide mouse pointer Sarfraz Alam January 10, 2018 #include<iostream.h> #include<conio.h> #include<math.h> #include<graphics.h> #include<dos.h> unio... Read More
C program to create a countdown program with graphics Sarfraz Alam January 10, 2018 #include <graphics.h> #include <dos.h> #include <conio.h> int main ( ) { int gd = DETECT , gm , i ; char a... Read More
Infix to postfix coversion using stack Sarfraz Alam January 04, 2018 C Program to convert a string from infix to post fix using stack. #include<stdio.h> #include<stdlib.h>... Read More
C program to reverse an array Sarfraz Alam January 03, 2018 #include<stdio.h> /* Function to reverse arr[] from start to end*/ void rvereseArray(int arr[], int start, int end) { int temp; ... Read More
C program to find the second largest Sarfraz Alam January 03, 2018 #include <stdio.h> #include<conio.h> int main() { int a,b,c,lar,seclar; clrscr(); scanf("%d%d%d",&a,&... Read More