List of all Primes up to a given number Sarfraz Alam November 06, 2018 #include <stdio.h> int *getPrimes(int n) { static int r[10]; int i,j; int count = 0, s=0; for(i = 2 ; i ... Read More
C program to create a moving car Sarfraz Alam September 19, 2018 #include <graphics.h> #include <dos.h> #include <conio.h> main() { int i, j = 0, gd = DETECT, gm; initgrap... Read More
Bankers Algorithm Implementation Sarfraz Alam September 11, 2018 C Program to implement Bankers Algorithm #include<stdio.h> main() { int max[20],all[20],need[20],s... Read More
Draw basic shapes using graphics Sarfraz Alam August 20, 2018 #include<graphics.h> #include<conio.h> main() { int gdd = DETECT,gmm,leftt=100,topp=100,rightt=200,bottomm=200,xx=... Read More
C program to print pascal triangle Sarfraz Alam August 19, 2018 #include<stdio.h> long factorial(int); Pascal Triangle int main() { int i, n, c; printf("How many rows you want ... Read More
C Program To Implement Non Preemptive Scheduling Sarfraz Alam August 09, 2018 "C Program To Implement Non Preemptive Scheduling" #include<stdio.h> int i,j,n; fl... Read More
Shortest job first scheduling algorithm : Implementation in C Sarfraz Alam July 17, 2018 Shortest remaining time First Algorithm In this scheduling algorithm, the process with the smallest amount of time remaining until c... Read More