Why is it bad practice to return a pointer to a local variable or parameter?
12683
How to access a local variable from a different function using pointers?
54967
When to use references vs. pointers
76488
What is a reference-to-pointer?
90050
returning a local variable from function in C
82155
C++11 rvalues and move semantics confusion (return statement)
144887
Why does the use of 'new' cause memory leaks?
85292
Are static local variables bad practice?
28606
Is it a good approach to call return inside using {} statement?
63114
How does dereferencing of a function pointer happen?
65580
Difference between pointer and reference as thread parameter
120041
Why does c++ pointer * associate to the variable declared, not the type?
996
Why can't I directly assign an int to an int pointer like this: int *p = 6;?
126591
Should I return const objects?
133836
How come a pointer to a derived class cannot be passed to a function expecting a reference to a pointer to the base class?
110077
Is it good practice to NULL a pointer after deleting it?
90783
When to use pointers in C#/.NET?
52821
Why do I get different results when I dereference a pointer after freeing it?