Please, can anybody explain this #C #programming #riddle? It was originally intended as example for first lesson of C course for beginners, but I fell into trap!

The source:

#include <stdio.h>

void main(void)
{
int a=1, b=1;
printf("Hello++: a==%d, b==%d, a++==%d, ++b==%d, a==%d, b==%d, a--==%d, --b==%d, a==%d, b==%d\n",a,b,a++,++b,a,b,a--,--b,a,b);
}

The output, when compiled by #gcc:

Hello++: a==1, b==1, a++==0, ++b==1, a==1, b==1, a--==1, --b==1, a==1, b==1

(Hint: it works as expected, if you separate the single printf into 5 printf-s with 2 arguments each. The problem is unexpected behavior of C++-ish ++ and -- operators, when used multiple times as multiple function arguments. Remainds me of multiple evaluation of macro arguments, or something like that)

El president de la Generalitat Salvador Illa anuncia l’adjudicació de les obres de la variant que començaran a l’estiu

#variant #C-59 #infraestructures #generalitat #salvadorIlla

https://onacodinenca.cat/el-president-de-la-generalitat-salvador-illa-anuncia-ladjudicacio-de-les-obres-de-la-variant-que

El president de la Generalitat Salvador Illa anuncia l’adjudicació de les obres de la variant que començaran a l’estiu

Els treballs tenen un cost de 43 milions d'euros. L’anunci d’Illa és celebrat per l’Ajuntament de Sant Feliu i representants institucionals del Vallès Oriental, el Moianès i municipis veïns, que han assistit a l'acte de presentació.

Ona Codinenca

The realisation 'C' was a failed Fortran compiler explains so much.

https://www.nokia.com/bell-labs/about/dennis-m-ritchie/chist.html

"Challenged by McIlroy's feat in reproducing TMG, Thompson decided that Unix—possibly it had not even been named yet—needed a system programming language. After a rapidly scuttled attempt at Fortran, he created instead a language of his own, which he called B."

#BSD #C #Unix

Hans Pleschinski: Bildnis eines Unsichtbaren/Der Flakon

Der Geliebte ist tot. Der Zurückbleibende schreibt einen Text über ihn, über die Beziehung, über das Kennenlernen, die Herkunft des einen und des anderen. Es ist eine Totenklage und die Erinnerung …

Kultursalon

Drawing With Code

What does it even mean? I see two main ways of drawing with code: 1) going for a representation of a thing you have in mind, or 2) using an algorithm and elements of randomness to surprise you. Representational I have code-drawn Lissajous curves with code - from a picture in mind before I started. I saw the curves as built from wires as thin as possible, or as thick metallic tubes. I have been lucky that I mathematical objects can be compressed so well into code. It would be way more […]

https://elkement.art/2026/03/27/drawing-with-code/

C Preprocessor tricks, tips, and idioms

0 comments

Lobsters

Как воспроизводить WebRTC видео на Qt клиенте

Что ж... Недавно я увлекся C++, поэтому давайте разберемся в какой-нибудь технологии и напишем по ней статью. Мой выбор пал на WebRTC и клиент на Qt.

https://habr.com/ru/articles/1016020/

#WebRTC #qt #c++ #go #видео

Как воспроизводить WebRTC видео на Qt клиенте

Что ж... Недавно я увлекся C++, поэтому давайте разберемся в какой-нибудь технологии и напишем по ней статью. Мой выбор пал на WebRTC и клиент на Qt. Результаты Начнем с теории и обозначим фронт...

Хабр
#TodayILearned about https://codebrowser.dev/ "an online #C, C++, #Rust & Dart #code browser. It focuses on improving the code navigation with proper semantic highlighting and tooltips." Thanks @kdab !
Explore C, C++, Rust & Dart code on the web

Codebrowser homepage

🚀 Announcing C-Blosc2 3.0.0 RC1!

The next generation of our fast, compressed, and persistent binary data store library for C is here. 💥

What's new?

📦 Variable-length chunks & blocks (VL-blocks) — perfect for irregular data like strings & JSON!

🗜️ Improved dictionary compression (now with LZ4 & LZ4HC support).

🛡️ Important safety fixes.

Check out the release notes to learn more:
https://github.com/Blosc/c-blosc2/blob/main/RELEASE_NOTES.md

This is RC1, so have it a go and report feedback!

#OpenSource #DataCompression #C

Votre serrure résiste-t-elle à ce pro de l’intrusion ?

https://yt.lostpod.space/w/qxwbFgQRJAhcFhVvDP2dn6

Votre serrure résiste-t-elle à ce pro de l’intrusion ?

PeerTube