Conteúdo do Curso
C++ Pointers and References
C++ Pointers and References
Link Between Pointer and Variable
When you modify the value through the dereferenced pointer, you are essentially modifying the content of the memory location it points to. This directly affects the original variable.
Remember
Changing the value through *(p_variable) is equivalent to changing the value of variable.
Tarefa
- Declare and initialize the pointer with a variable address.
- Change the value of dereferenced pointer to zero.
- Output the variable value.
Obrigado pelo seu feedback!
Link Between Pointer and Variable
When you modify the value through the dereferenced pointer, you are essentially modifying the content of the memory location it points to. This directly affects the original variable.
Remember
Changing the value through *(p_variable) is equivalent to changing the value of variable.
Tarefa
- Declare and initialize the pointer with a variable address.
- Change the value of dereferenced pointer to zero.
- Output the variable value.
Obrigado pelo seu feedback!
Link Between Pointer and Variable
When you modify the value through the dereferenced pointer, you are essentially modifying the content of the memory location it points to. This directly affects the original variable.
Remember
Changing the value through *(p_variable) is equivalent to changing the value of variable.
Tarefa
- Declare and initialize the pointer with a variable address.
- Change the value of dereferenced pointer to zero.
- Output the variable value.
Obrigado pelo seu feedback!
When you modify the value through the dereferenced pointer, you are essentially modifying the content of the memory location it points to. This directly affects the original variable.
Remember
Changing the value through *(p_variable) is equivalent to changing the value of variable.
Tarefa
- Declare and initialize the pointer with a variable address.
- Change the value of dereferenced pointer to zero.
- Output the variable value.