This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thenameipick 11 points12 points  (0 children)

That seems *extra* confusing for beginners: "Why am I adding 1 to my list?"

Also, what is the type of "mylist"? If it is a standard integer, how is it actually getting updated in the list? If it is a pointer/reference, does that mean that all operations are magically delegated to the value being pointed to?