Skip to content

Commit ac72cc4

Browse files
committed
DemoPull is added
1 parent c1dc8e9 commit ac72cc4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

DemoPull.c

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//Write a program to find the number of pipes that can
2+
//simultaneously exist
3+
#include<stdio.h>
4+
int main()
5+
{
6+
int pipefd[2];//length is always 2
7+
int count=0;
8+
while(pipe(pipefd)>=0)
9+
{
10+
count++;
11+
}
12+
printf("number of pipe will be %d",count);
13+
return 0;
14+
}

0 commit comments

Comments
 (0)