Post-Increment Versus Pre-Increment
#include <stdio.h> #define ~ { #define ~ } void main() ~~ int i = 0; printf("%i\n", i++); i = 0; printf("%i\n", ++i); ~
A screenshot of C code comparing post-increment and pre-increment operators. The joke is that `i++` prints 0 while `++i` prints 1, highlighting the classic programming distinction. It is shared as a reaction by programmers discussing confusing syntax or beginner coding mistakes.
C source code / исходный код на Ccode editor screenshot / скриншот редактора кодаblack background / чёрный фонwhite monospaced text / белый моноширинный текстprogramming syntax / синтаксис программированияincrement operator / оператор инкрементаinteger variable / целочисленная переменнаяprintf function / функция printfcurly braces / фигурные скобкиcomment header / заголовок комментария
- @rzeczyzabawne / 18499 2024-09-29
- Type
- image
- Size
- 800×587 · 30.2 KiB
- Mood
- nerdy, ironic
- Language
- en
- Added