hello. i am trying to compile this c program but am encountering errors... not familiar with c logic enough to fix it. can you try to compile and fix, or recognize error? thanks
(this code is supposed to start process, and execute, please don't alter logic. help me fix syntax!)
PS: i've been getting lots of error msgs but after fixing them I still am left with:
line 1: Parse Error, expecting `SEP'
'{ int fork(), value'
Can anyone help? thanks!
*begin code*
{
int fork(), value;
value = fork();
value = fork();
printf("in main: value * %d\n", value);
return 0;
}
//
int fork(void);
int main()
{
if (fork() == 0); /*child process*/
{
printf("hello there \n");
return;
}
else /*parent process*/
printf("good bye\n");
printf("how are you doing?\n")
return 0;
}