Search:

Type: Posts; User: mfr

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,144

    Unexpected output for simple forking program

    Hello, Im a beginner in C and I’ve started learning about system calls and forking. I am forking in a loop but I get unexpected behaviour. My program takes one number and simply forks(), it also...
  2. Replies
    1
    Views
    3,331

    Extracting information from stdin using scanf()

    Hello, I’m writing a program that reads stdin using scanf() and extracts 2 pieces of information to use later. I want to use string formatting and scanf() to do this since I’m very new to C and want...
  3. Set a pointer's value without changing it's address?

    Hello I'm very new to C and I'm doing practice problems to improve my understanding. I've been stuck on a question about dynamic memory allocation and pointers, I want to set the value at ptr's to...
  4. Replies
    2
    Views
    3,546

    Thank you very much! This was something I didn't...

    Thank you very much! This was something I didn't know, and it now works as I expected.

    Also, the reason I didn't define and initialize in the same step is because I'm working through C practice...
  5. Replies
    2
    Views
    3,546

    Setting a char array after declaring error

    Hello I've been having trouble with a really simple concept, and I'm new to C, and other resources are confusing me.

    I have declared an array, and want to set each element but get a: Warning:...
Results 1 to 5 of 5