[Solved] Not Getting Segmentation Fault [duplicate]

First of all, you aren’t guarenteed to get a segmentation fault, or any defined behavior, for triggering undefined behavior, such as modifying a string literal. Though on Linux, string literals are put into read-only memory, so modifying them on Linux will usually result in a segmentation fault. So why doesn’t this code trigger a segfault? … Read more

[Solved] Fork : number of processes created [closed]

No, that’s not quite correct though it’s close. Think about the properties of all those processes down the left hand side. p0 creates four children, p1 creates three, and so on. Since this is undoubtedly something you’re supposed to nut out yourself, I won’t make it any clearer, that should be more than enough to … Read more