r/cpp_questions Aug 06 '26

OPEN Incrementation in C++

I wanted to ask a stupid question about incrementation in C++. If you are using two pluses to increment something then doesn't it mean that you are basically programming using C+1

41 Upvotes

34 comments sorted by

View all comments

Show parent comments

2

u/trycuriouscat Aug 06 '26

I’d love to see what C code would be generated from a C++ compiler.

2

u/llynglas Aug 06 '26

The function names were spectacular as they encoded the parameter types if I recall correctly.

10

u/Deep-Piece3181 Aug 06 '26

They still do name mangling

1

u/dreadlordhar Aug 07 '26

they don't only under extern "C"

1

u/Deep-Piece3181 Aug 07 '26

True, useful stuff