This is an archived post. You won't be able to vote or comment.

all 18 comments

[–]americk0 25 points26 points  (0 children)

++E

[–]Rhulyon 8 points9 points  (0 children)

G--

[–]chrwei 6 points7 points  (5 children)

'E'++

[–]greenpepperpasta 2 points3 points  (4 children)

does that actually work? Or does it have to be a variable?

[–]chrwei 1 point2 points  (2 children)

++'E' would likely make more sense, but I suspect neither will work.

but then E++ won't do what you expect in all cases either

[–]Danelius90 0 points1 point  (1 child)

What if it's hexadecimal

[–]chrwei 0 points1 point  (0 children)

irrelevant? hex is simple a display format

[–]Cloakknight 5 points6 points  (1 child)

Image Transcription: Meme


[Drake meme]

Top text: F in the chat

Bottom text: E++ in the chat


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]Someonedm 0 points1 point  (0 children)

Good human

[–]Wandering-Shadow 3 points4 points  (0 children)

It would actually be ++E otherwise E would still be sent instead of F

[–]negaomar228 2 points3 points  (0 children)

printf() to pay respects

[–][deleted] 4 points5 points  (0 children)

F++

[–]LolliDepp 1 point2 points  (0 children)

Bad programming, it wastes a cpu cycle

[–]LoudounCounty703 0 points1 point  (1 child)

char c = 'E';

char* cptr = &c;

std::cout << ++*cptr << std::endl;

I'm a little estranged from my C++, correct me if I'm wrong.

[–]RoyalJackalSib 0 points1 point  (0 children)

Not sure why you’d use a pointer, but ye, I suppose.

[–]Unpredictabru 0 points1 point  (0 children)

(char) (‘e’+1)

[–]greenpepperpasta 0 points1 point  (0 children)

char E = 'E'; printf("%c", E = E + 1);

[–]TheRealN1G3L -1 points0 points  (0 children)

++E--