Terminal Linux en ligne pour la programmation C
intmain()
{
inti = 48, pid = -1;
pid = fork();
if (pid == -1)
{
printf ("Fork failed\n");
i++;
exit (1);
}
if (pid == 0)
{
printf ("In child process\n");
printf ("Printing current working directory using execlp system call\n");
i++;
}
else
{
printf ("In parent process\n");
printf ("Name: MAMOONA ASIF\n");
printf ("Roll No: MC180402471\n");
printf ("Program: MIT\n");
i++;
}
}
Clumsy Chicken