D
D
DjTolib2021-07-20 15:58:51
C++ / C#
DjTolib, 2021-07-20 15:58:51

Somewhere I heard that the prefix increment works faster than the postfix one. This is true?

int i = 0;
i++;
++i;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2021-07-20
@DjTolib

Everything has already been studied
Briefly - use prefix everywhere, then the debug code will work a little (or even significantly) faster, and the code itself will look solid, thorough - as if a senior wrote it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question