Sandbox
From ProjectWiki
(Difference between revisions)
Line 16: | Line 16: | ||
<source lang="c"> | <source lang="c"> | ||
char *reverse(char *str) { | char *reverse(char *str) { | ||
− | + | char *epos=strlen(str); | |
− | + | ||
char c; | char c; | ||
do { | do { | ||
− | + | c=*--epos; | |
− | } while( | + | *str=*epos; |
+ | *epos++=c; | ||
+ | } while(str>epos); | ||
} | } | ||
</source> | </source> |
Revision as of 17:29, 15 March 2008
This page can be used to experiment with the waki wiki ways
~_~</div>{{#if:February 2008||}}
Blah Blah Blah
Lupis Leeestum blah da teestium.
Sowarikko?!! nandeyo?! ¬_¬
Math boxes do not work?
<math>(x2-x1)^2</math>
- <math>{n^n \over 3^n} < n! < {n^n \over 2^n}\mbox{ for }n\ge 6.</math>
char *reverse(char *str) { char *epos=strlen(str); char c; do { c=*--epos; *str=*epos; *epos++=c; } while(str>epos); }