Skip to content

pointer to unrendered area #16

Closed
Closed

Description

@Migutti

In the following code example in the function set5, the arrow int* number points on the the view of the stack of set5 upwards to an unrendered area, whereas int* p points to the view of the main stack as desired.

#include <stdio.h>

void set5(int* number)
{
  int* p = number + 1;
  *p = 5;
}

int main()
{
  int array[5] = {1, 2, 3, 4, 5};
  set5(array);
  return 0;
}

Activity

  1. moved this from Todo to In Progress in Stackiumon Nov 26, 2023
  2. added a commit that references this issue on Sep 14, 2024
  3. moved this from In Progress to Done in Stackiumon Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions