Search:

Type: Posts; User: tabstop

Search: Search took 0.12 seconds.

  1. Probably because you had one working version,...

    Probably because you had one working version, long ago; and since memory is not deleted or anything, the variables land in the same places, and integers gets a valid value by luck. Declare int *ptr...
  2. How many numbers do you want to average: 7 #1...

    How many numbers do you want to average: 7
    #1 Please enter a number: 3

    Process returned -1073741819

    Definitely "flawless"?
  3. You can change what is pointed to by a function...

    You can change what is pointed to by a function parameter, but you can never change the thing itself. So in your example, integers was a pointer to some integers -- those integers could be changed,...
  4. Functions are like Vegas: what happens in a...

    Functions are like Vegas: what happens in a function, stays in the function. Just because you change the value of integers inside the function allocate_memory, doesn't mean that you can see that...
Results 1 to 4 of 4