Question: #include #include int cnt = 0; int main(void) { if (fork() == =0){ cnt ++; fork(); cnt++; } } cnt ++; printf(%d, cnt); return

#include #include int cnt = 0; int main(void) { if (fork() == =0){ cnt ++; fork(); cnt++; } } cnt ++; printf("%d", cnt); return 0; For each of the following strings, answer whether (Y) or not (N) this string is a possible output of the program. (Explain your answers!) a. 133 b. 331 C. 321 d. 313 e. 312
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
