I have had the recent pleasure to explain pointers to a C programming beginner and stumbled upon the following difficulty. It might not seem like an issue at all if you alre
If the problem is the syntax, it may be helpful to show equivalent code with template/using.
template using ptr = T*;
This can then be used as
ptr bar = &foo;
After that, compare the normal/C syntax with this C++ only approach. This is also useful for explaining const pointers.