Yes I do get that as output.
But what's the purpose of fork() in here? If fork() makes a copy of process, what's the copy doing in this particular program?
Thanks.
Type: Posts; User: robogeek
Yes I do get that as output.
But what's the purpose of fork() in here? If fork() makes a copy of process, what's the copy doing in this particular program?
Thanks.
Hello guys,
I have an assignment which requires me to write Collatz collecture using fork() .
I have finished the assignment (attached my code below) but I don't understand the purpose of...
I agree with that but I had to make modifications because the program was giving errors when I simply copy pasted it.
Hello everyone,
I am a newbie in C and was testing a code to read text file into struct array, posted here...
Sorry, that's a typo. It was suppose to be PickUpAdd = ... and then index++ for every loop. But since I was getting segfault I was testing with adding the index value [0] and then forgot to take it...
Sorry but I don't see any difference between the two lines you showed me.
The ServiceSlip is the object of struct DeliveryService type. And the definition of DeliveryService struct is in the definition file (I labled it "//Definition ..." in my original post. Unless you...
Hello all,
I am quite new to C programming and was trying to assign some value to a struct of array in my code but upon compiling and runing the program I get segmentation fault (core dumped).
...