Untitled

mail@pastecode.io avatar
unknown
plain_text
14 days ago
286 B
0
Indexable
Never
int  n,m,i,j,k;
printf ("enter the  no of processes");
scanf("%d",&n);
printf("enter the no of resources");
scanf("%d",&m);
int alloc[m][n];
int max[m][n];
int avail[m];
printf ("enter the allocation matrix");
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
scanf("%d",&alloc[i][j]);
}
}
printf

Leave a Comment