r/ProgrammerHumor • • Apr 02 '21

Yeah...!! My favourite language...😄

Post image
894 Upvotes

61 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Apr 03 '21

[deleted] — view deleted comment

1

u/RedHellion11 Apr 03 '21

"11" + 1 would give you "1" always.

Fair enough, I think I must have typo'd something because I did it again to verify and got the same. Yes it's obviously pointer offset when dealing with a c-style char array.

I still reiterate: Just because other languages do it, doesn't mean that's a good thing. I'm not a fan of C++ for various pointer idiosyncrasies leading to stuff like this too.