Top "Pointers" questions

Data type that "points to" another value stored in memory.

Valgrind: Invalid read of size 1

I'm having an issue with valgrind: This is my program (well the main part where the errors appear): int main() { …

c pointers valgrind
X does not implement Y (... method has a pointer receiver)

There are already several Q&As on this "X does not implement Y (... method has a pointer receiver)" thing, …

pointers go methods interface
Pointer expressions: *ptr++, *++ptr and ++*ptr

Recently I have come across this problem which I am unable to understand by myself. What do these three Expressions …

c++ c pointers increment
How does free know how much to free?

In C programming, you can pass any kind of pointer you like as an argument to free, how does it …

c size pointers free
Are python variables pointers? or else what are they?

Variables in Python are just pointers, as far as I know. Based on this rule, I can assume that the …

python pointers variables identifier
Using C-string gives Warning: "Address of stack memory associated with local variable returned"

I am not a C programmer, so I am not that familiar with C-string but now I have to use …

c++ pointers c-strings
Proper way of casting pointer types

Considering the following code (and the fact that VirtualAlloc() returns a void*): BYTE* pbNext = reinterpret_cast<BYTE*>( VirtualAlloc(…

c++ pointers casting reinterpret-cast static-cast
Should I use static_cast or reinterpret_cast when casting a void* to whatever

Both static_cast and reinterpret_cast seem to work fine for casting void* to another pointer type. Is there a …

c++ pointers static-cast reinterpret-cast
C pointers : pointing to an array of fixed size

This question goes out to the C gurus out there: In C, it is possible to declare a pointer as …

c pointers size
C++: difference between ampersand "&" and asterisk "*" in function/method declaration?

Is there some kind of subtle difference between those: void a1(float &b) { b=1; }; a1(b); and void a1(…

c++ pointers reference