Option C: int* myPtr = &myInt; is the following statement used to assign the address of the variable int myInt to the pointer int* myPtr.
What are pointers and addresses?In C++, pointers are variables that store the memory address of another variable. A pointer is essentially an address. It points to a memory address, indicating where a variable is stored in memory. A pointer should be declared as the data type of the variable it points to, followed by an asterisk.
For example, if a pointer points to an int, it should be declared as int*. A memory address is a unique identifier for a specific memory location. It is a reference point for a particular byte of memory. Each byte in memory has a distinct memory address.
To assign the address of a variable to a pointer, use the address-of operator & followed by the variable name. For example, to assign the address of the variable int myInt to the pointer int* myPtr, use the following statement: int* myPtr = &myInt.
Therefore, option C, int* myPtr = &myInt, is the correct answer.
Learn more about pointers in C++:
https://brainly.com/question/20553711
#SPJ11