Skip to content

Instantly share code, notes, and snippets.

View brenomfviana's full-sized avatar
🎯
Focusing

Breno Viana brenomfviana

🎯
Focusing
View GitHub Profile
@brenomfviana
brenomfviana / failing_to_increment.c
Last active June 14, 2020 03:05
How to fail to increment a variable in C
// This is an error of a beginner programmer, however it leaded to an
// unprevisible behavior that I think it is interesting to share.
#include <stdio.h>
int main() {
char c;
int i = 1;
while (1) {
// Prints `i` normally