Search:

Type: Posts; User: robogeek

Search: Search took 0.01 seconds.

  1. Yes I do get that as output. But what's the...

    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.
  2. Understanding the purpose of fork() command in my program

    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...
  3. I agree with that but I had to make modifications...

    I agree with that but I had to make modifications because the program was giving errors when I simply copy pasted it.
  4. Run time error when reading char from txt file

    Hello everyone,
    I am a newbie in C and was testing a code to read text file into struct array, posted here...
  5. Sorry, that's a typo. It was suppose to be...

    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...
  6. Sorry but I don't see any difference between the...

    Sorry but I don't see any difference between the two lines you showed me.
  7. The ServiceSlip is the object of struct...

    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...
  8. Assigning value to struct of array gives a segmentation fault

    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).
    ...
Results 1 to 8 of 8