FizzBuzz Interview Alternative
we all know by now that fizzbuzz is an unrealistic case for interviews. here's my suggestion for a better program instead 👍🏻 #include <stdio.h> int i; int main(void) { if (i % 3 == 0 && i % 5 == 0) { fprintf(stderr, "Connection reset\\n"); } else if (i % 5 == 0) { fprintf(stderr, "Bus error\\n"); } else if (i % 3 == 0) { fprintf(stderr, "failed to initiate panic; error 5\\n"); } else { fprintf(stderr, "Segmentation fault (core dumped)\\n"); } // global because i18n is important i++; return main(); }
A tweet presents a C program as a supposedly better alternative to the classic FizzBuzz interview exercise. Instead of printing numbers or words, the program produces increasingly chaotic system errors and recursively calls itself forever, parodying unreliable software and absurd interview coding tasks. EN: A tweet presents a C program as a supposedly better alternative to the classic FizzBuzz interview exercise. Instead of printing numbers or words, the program produces increasingly chaotic system errors and recursively calls itself forever, parodying unreliable software and absurd interview coding tasks.
code screenshot / скриншот кодаC source code / исходный код на Cblack background / чёрный фонwhite text / белый текстprogramming function / функция программыerror messages / сообщения об ошибкахthumbs-up emoji / эмодзи с поднятым большим пальцемprofile avatar / аватар профиляsocial media post / публикация в соцсети
- @ithueti / 4434 2021-07-25
- Type
- image
- Size
- 667×800 · 65.3 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added