Computer Science, asked by rishu4247, 1 year ago

What does dereferencing a pointer do

Answers

Answered by ramnroyh807
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