#include typedef struct { int no; int need[10]; int alloc[10]; int max[10]; int com; }process; process p[10]; int np,nr,ps[10],avail[11][10]; int compare(int n[],int a[]){ int flag=0; for(int i =0;ia[i]){ flag=1; break; } } if(flag){ return 0; } return 1; } int main(){ int i,j,flag; int pId=0; printf("Enter the number of process and resources : "); scanf("%d %d",&np,&nr); printf("Enter the allocation matrix : \n"); for(i=0;i