Pages: 1 [2]   Go Down
Author Topic: 595 patterns  (Read 1924 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Rose Hill, Kansas
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

In the Land of Oz . . .
  Just South of the
    Yellow Brick Road !

Pages: 1 [2]   Go Up
Jump to: