Top "Pointers" questions

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

What is the size of a pointer?

Is the size of a pointer the same as the size as the type its pointing to, or do pointers …

c++ pointers sizeof
How can I check if char* variable points to empty string?

How can I check if char* variable points to an empty string?

c pointers char
C free(): invalid pointer

I am teaching myself C. My goal is to make a C function that just walks a query string and …

c pointers free valgrind
How to pass objects to functions in C++?

I am new to C++ programming, but I have experience in Java. I need guidance on how to pass objects …

c++ pointers pass-by-reference pass-by-value c++-faq
How to declare std::unique_ptr and what is the use of it?

I try to understand how std::unique_ptr works and for that I found this document. The author starts from …

c++ pointers std unique-ptr
How to cast/convert pointer to reference in C++

How can I pass a pointer (Object *ob) to a function which prototype is void foo(Object &) ?

c++ pointers casting reference type-conversion
How does delete[] know it's an array?

Alright, I think we all agree that what happens with the following code is undefined, depending on what is passed, …

c++ arrays pointers new-operator delete-operator
How do pointer-to-pointer's work in C? (and when might you use them?)

How do pointers-to-pointers work in C? When might you use them?

c pointers
When should I use the new keyword in C++?

I've been using C++ for a short while, and I've been wondering about the new keyword. Simply, should I be …

c++ pointers reference new-operator keyword
How do I use arrays in C++?

C++ inherited arrays from C where they are used virtually everywhere. C++ provides abstractions that are easier to use and …

c++ arrays pointers multidimensional-array c++-faq