Bifalgorithm post

explaining pointers with Anya. First, let's create an integer and let's call this a and let's set the value to 10. And when you create a variable, it is stored somewhere in memory. And for example, this 10 can be stored in the memory address 0x100. So we basically just created this integer and now let's create an in star that points to this integer. So to do this, we have to create an integer and then we put a star character and then we give the variable a name. And now we can use the n percent sign and the variable a so that way we can point to this memory address right here. So now let's copy this and paste it and now let's add another star and now let's call this variable AP. And instead of getting the memory address of a let's change this to P. So now this variable points to n percent a which points to this memory address right here. So now we basically have in star star that points to int star which points to the int. And if you learn something new, make sure to follow for more.

explaining pointers with Anya. First, let's create an integer and let's call this a and let's set the value to 10. And when you create a variable, it is stored…

Ideas in this flowchart

  • Explaining Pointers with Anya
  • Create Integer Variable
  • Variable 'a' with Value 10
  • Memory Storage
  • Value 10 at Address 0x100
  • Create Pointer to Integer
  • Integer Pointer 'P'
  • Use '&' to Point to 'a'
  • Copy and Modify Pointer
  • Add Another Star
  • Variable 'AP' Points to 'P'
  • Pointer Hierarchy
  • int** -> int* -> int
  • Follow for More
Feed/

explaining pointers with Anya. First, let's create an integer and let's call this a and let's set the value to 10. And when you create a variable, it is stored somewhere in memory. And for example, this 10 can be stored in the memory address 0x100. So we basically just created this integer and now let's create an in star that points to this integer. So to do this, we have to create an integer and then we put a star character and then we give the variable a name. And now we can use the n percent sign and the variable a so that way we can point to this memory address right here. So now let's copy this and paste it and now let's add another star and now let's call this variable AP. And instead of getting the memory address of a let's change this to P. So now this variable points to n percent a which points to this memory address right here. So now we basically have in star star that points to int star which points to the int. And if you learn something new, make sure to follow for more.

"explaining pointers with Anya."

👍
0
0 comments0 shares

Sign in to view and post comments.