Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by psa ( 5 years ago )
GNU nano 4.9                       prac2.cpp
#include <iostream>
#include <stdlib.h>

using namespace std;

int main () {

        int val = 5;
        int pid;

        if (pid = fork())
                wait(pid);
        val++;
        printf("%d\n", val);
        return val;


}

 

Revise this Paste

Your Name: Code Language: