Go Down

Topic: 595 patterns (Read 2354 times) previous topic - next topic

dhenry

Quote
However, when I pass an array to a function THEN use sizeof(), it returns 2.


In that case, you are getting the size of a pointer to a byte array.

Chief_Paul

Thanks for confirming my suspicion. I appreciate your feedback.

I seem to learn best by trial and error, also known as fumbling around !

I am a disabled veteran. One thing I have a lot of is time.

Programming helps take my mind off of negative things.
In the Land of Oz . . .
  Just South of the
    Yellow Brick Road !

Go Up