CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;
#include <unistd.h>
int main()
{
int i =10;
unsigned int pid = 99;
pid = fork();
cout << "process id " << pid << endl;
i = i+1;
cout << i << endl;
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run