Untitled
unknown
plain_text
9 months ago
375 B
0
Indexable
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("enter max matrix"); for(i=0;i<n;i++) { for(j=0;j<m;j++) { scanf("%d",&max[i][j]); } }
Editor is loading...
Leave a Comment