Top "Pointers" questions

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

What are the differences between a pointer variable and a reference variable in C++?

I know references are syntactic sugar, so code is easier to read and write. But what are the differences?

c++ pointers reference c++-faq
Return array in a function

I have an array int arr[5] that is passed to a function fillarr(int arr[]): int fillarr(int arr[]) { for(...); …

c++ arrays pointers function return
Regular cast vs. static_cast vs. dynamic_cast

I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've …

c++ pointers casting
Passing a 2D array to a C++ function

I have a function which I want to take, as a parameter, a 2D array of variable size. So far …

c++ arrays pointers multidimensional-array
What does "dereferencing" a pointer mean?

Please include an example with the explanation.

c++ c pointers dereference
How do you pass a function as a parameter in C?

I want to create a function that performs a function passed by parameter on a set of data. How do …

c function pointers syntax parameters
When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?

What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast …

c++ pointers casting c++-faq
What is the difference between const int*, const int * const, and int const *?

I always mess up how to use const int*, const int * const, and int const * correctly. Is there a set …

c++ c pointers int constants
Arrow operator (->) usage in C

I am reading a book called "Teach Yourself C in 21 Days" (I have already learned Java and C# so I …

c pointers syntax