Professional Documents
Culture Documents
h>
#include<stdbool.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define block 100
int main()
{
bool c=true;
int ch;
int *f=(int *)malloc (block*sizeof(int));
while(c)
{
printf("\n\t1.Contiguous Allocation\n\t2.Indexed Allocation\n\t3.Linked Allocation\
n\t4.Exit\n");
printf("Enter the method:");
scanf("%d",&ch);
switch(ch)
{
case 1:
{
contiguous(f);
break;
}
case 2:
{
indexed(f);
break;
}
case 3:
{
linked(f);
break;
}
case 4:
{
free(f);
c=false;
printf("Exitting....\n");
break;
}
default:
{
}
}
}
}