An Interesting C Program and Puzzle
#include <stdio.h>
_(__,___,____){___/__<=1?_(__,___+1,____):!(___%__)?_(__,___+1,0):___%__==___/
__&&!____?(printf("%d\t",___/__),_(__,___+1,0)):___%__>1&&___%__<___/__?_(__,1+
___,____+!(___/__%(___%__))):___<__*__?_(__,___+1,____):0;}main(){_(100,0,0);
}
It should compile (really!) and run but you may find it crashes. So the puzzle is, what do you need to do to make it run. Here's a big clue. Don't change any of the source code! You can search wikipedia but that won't tell you what's wrong... Answer on Wednesday. Have fun!
- Link to C Tutorials


program prints prime numbers between 0-100.
I tried on debian unix ..it doesn’t crash but prints prime numbers between 0-100.
yeah, it prints prime no.s between 1 & 100.
it doesnt crash. i used gcc compiler
This program will definitely work and not crash and it will display all the prime numbers between 1 to 100.
In this program symbol “_” is used as variable being very specific about the prog.
“_” is used as a function name &
“_”, “__”& “___” are the variable name
Could someone comment on the logic used here.