Questions tagged [pointers]

Questions related to teaching about pointers or references. Use this tag to ask about teaching various aspects and points regarding pointers.

Filter by
Sorted by
Tagged with
2 votes
2 answers

How do I get students to look at course materials, rather than google?

In general I don't mind them looking up stuff online, but the other day a bunch of them really ticked me off when they found a solution online that was pretty much explicitly marked as "bad idea&...
Victor Eijkhout's user avatar
1 vote
1 answer

Teach smart pointers to beginners with no knowlege of OOP or templates

I have to teach an Intro to Programming class of students with some exposure to proccedural programming, arrays and loops etc. However, they have not taken any course in oop and templates. It is a ...
Mallam Awal's user avatar
2 votes
2 answers

Teaching data structures with C++: should I go with smart instead of raw pointers?

I teach an intro to programming course which covers mostly the basics (data types, control flows, functions, arrays, pointers, singly linked lists, circular linked lists, doubly linked lists, without ...
Floella's user avatar
  • 373
9 votes
8 answers

Why are pointers a key topic in a CS curriculum and oft cited as something people don't get?

I was reading a Q&A on Meta Software Engineering and saw some people make reference to pointers, as well as this SE. I see several Q&A here relating to pointers as well. I don't understand ...
YetAnotherRandomUser's user avatar
40 votes
20 answers

Is it important to teach pointers in a first course using Java?

Many instructors teaching with Java started their education using earlier languages such as C or C++ in which pointers are essential. Pointers, however, are not a Java concept, though those same ...
Buffy's user avatar
  • 36.3k
6 votes
3 answers

Explaining pointers to highschoolers

How would you explain pointers and their use to high school students with some prior knowledge in programming, mainly in Python, but very limited knowledge of C? Note that this isn't a duplicate of ...
auden's user avatar
  • 4,724
8 votes
5 answers

Simple Pointer Examples in C

Thanks to feedback in this thread, I'm beginning to plan how to integrate a basic introduction to pointers into my unit on arrays. Here's a sample program I just wrote up: ...
Peter's user avatar
  • 9,102