What's the difference between
unsigned long * buffer and
unsigned long buffer
The * says that the variable is a pointer
Creates an array of pointer to unsigned long.
Creates an array of unsigned long.
There are lots of tutorials on pointers. A Google search for "arduino pointer tutorial" should turn up interesting pages.
Edit: Corrected many brain farts
{cough}
Fixed it.
Say what??? Where do you see ANY hint of arrays there? The first is a pointer to an unsigned long. Period. The second IS an unsigned long. NO ARRAYS involved in either.
Tried to fix that, too.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.