✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Determine the value of x in the following program:
int main() { int x = 1; int pid = fork(); if (pid != 0) { printf("x=%d\n", ++x); exit(0); } printf("x=%d\n", --x); exit(0); }