Go Down

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


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.


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