What does dereferencing a pointer do
Answers
Answered by
0
Dereferencing a pointer means getting the value that is stored in the memory location pointed by the pointer. The operator * is used to do this, and is called the dereferencing operator. int a = 10; int* ptr = &a; printf("%d", *ptr); // With *ptr I'm dereferencing the pointer.
Similar questions
English,
7 months ago
English,
7 months ago
Biology,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago