Assigning Numbers to Memory Cells Using Pointers

Pointers to assign numbers

The following sequence of pseudocode is a set of instructions to interpret the contents of the %RAX register as the address of a memory cell and then assign a value to that memory cell:

address a -> rax
1 -> (rax)

Assigning numbers in C and C++

In C and C++, assigning a number is called dereferencing a pointer, and we write:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy