Write a program that counts and prints the number of characters in it's own source code to standard output.
The number must be generated from counting the characters.
This Ruby solution would not be allowed:
puts 6
because it is not calculated. Spaces, tabs, new lines, etc should be counted.
The program must be smallest possible in any programming language.
1
\$\endgroup\$ – avall May 15 '14 at 13:28echo 'wc -c $0' > x ; sh x
... I think this is a nice question, maybe the rules should be a little more precise... \$\endgroup\$ – user19214 May 15 '14 at 13:33