Timeline for Write lines in detention
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2015 at 15:17 | comment | added | Pharap |
@CoolGuy All done, and I went one better by stripping the first part of the for out and assigning c at the point it is declared. I considered switching the for to a while, but it would be a byte longer. e.g. while(c<'Z'){++c;} (18) vs for(;c<'Z';++c){} (17)
|
|
Jun 3, 2015 at 15:13 | history | edited | Pharap | CC BY-SA 3.0 |
Shorter code
|
Jun 3, 2015 at 5:47 | comment | added | Spikatrix |
Golf it more by removing #include <stdio.h> and using main(){...} instead of void main(){...} . Also, char *s="..." can be written as char*s="..." to save one byte. Declaring c outside the loop an also save some more bytes:char*s="...",c;
|
|
Jun 3, 2015 at 1:48 | history | edited | Pharap | CC BY-SA 3.0 |
Fixed syntax errors
|
Oct 28, 2014 at 10:04 | history | answered | Pharap | CC BY-SA 3.0 |