Timeline for Write a program to print the sum of the ascii codes of the program
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2014 at 23:23 | history | edited | Random832 | CC BY-SA 3.0 |
added 155 characters in body
|
Mar 8, 2014 at 23:12 | comment | added | Braden Best |
@userunknown yes, I was adding to your point, >test && wc -c test outputs 0 test
|
|
Mar 8, 2014 at 13:50 | comment | added | user unknown |
@B1KMusic: The program, as I understand it, would be wc -c file.wc and that should be the content of the file file.wc, if it is the program. It would not be empty.
|
|
Mar 7, 2014 at 4:39 | comment | added | Braden Best |
@userunknown $ >file will create a 0-byte file by overwriting (or creating) its contents with the output of nothing
|
|
Apr 13, 2012 at 18:50 | comment | added | Peter Olson |
You could do 10 in base 97.
|
|
Jul 24, 2011 at 7:34 | comment | added | Thomas Eding |
I would say wc is an application, not a language.
|
|
Jun 23, 2011 at 13:16 | vote | accept | Alexandru | ||
Jun 22, 2011 at 16:16 | comment | added | user475 |
+1 for wc , -1 for base cheating, +1 for making jokes in base 13.
|
|
Jun 22, 2011 at 15:02 | comment | added | Random832 |
The only clause which seems to do so is "Any input such as command line arguments ... is prohibited" so leave off the -c, then it prints 0 0 0 (if the file being passed as a file prohibits it, then all scripting languages are also forbidden)
|
|
Jun 22, 2011 at 13:53 | comment | added | Joey |
user: One might argue that the sum of values in an empty set is still 0. Nevertheless, wc -c is forbidden in the question anyway.
|
|
Jun 22, 2011 at 13:40 | comment | added | user unknown | But wc should read a file, containing a 0-byte to produce Number 0, not an empty one. Empty is not Null. | |
Jun 22, 2011 at 0:48 | history | edited | Random832 | CC BY-SA 3.0 |
added 247 characters in body
|
Jun 22, 2011 at 0:32 | history | answered | Random832 | CC BY-SA 3.0 |