Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Just put it in codeblocks and compile.....
They even added the header files...
Bunch of idiots! -
Akatana4326y@Gregozor2121 seriously have you guys never learned to code on paper? You shouldn't need a compiler to solve this... Copying this code takes longer than looking at it for a min to solve it. It's not that hard
-
This is c with an inline declaration of a variable in a for loop
for(int i...)
This isn't valid c -
kamen69726yAnyone with basic programming skills could solve this even without being competent in C at all. If this gets you an interview about a C position, it's kind of silly.
-
@Akatana
I know how to solve it...
It is just that any idiot can just paste it in codeblocks (or even android c++ compiler and get the code!) -
Kyu9620216yYou really dont need a Compiler for this one. After looking at it for a sec u should know whats going on.
-
@AlgoRythm it is no valid ISO C89 but nobody said anything about the standard (actually the poster didn't even specify the language, except from the file being named main.c). It's totally fine for C99 upwards.
Recruiters in germany try to pick your interest with coding “challenges”. I like the idea but this is actually no challenge at all! 😃
joke/meme