C++ returns two longs
Can easily do the same in C++. For example, here's a function that returns two 'long' objects: #cpp long long get_two_longs() { return 1001L, 1501L; } In Go, a function can return MULTIPLE results?! This is mindblowing 🤯
A programming post jokes that a C++ function returns two long objects, but the code actually uses the comma operator and returns only the second value. A quoted Go reaction marvels at functions returning multiple results, making fun of the contrast between the languages and the original misunderstanding.
man with glasses / мужчина в очкахsocial media post / публикация в соцсетиC++ code block / блок кода на C++Go code screenshot / скриншот кода на Gocomputer programming text / текст о программированииblack background / чёрный фонgray code panel / серая панель с кодомblue hashtag / синий хэштегglasses / очки🤯 exploding head emoji / эмодзи взрыва головы
- @gentoomemes / 9663 2024-02-25
- @right_wing_dev_squads / 14505 2026-06-06
- Type
- image
- Size
- 786×800 · 78.6 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added