[ create a new paste ] login | about

Link: http://codepad.org/vD4WkoWY    [ raw code | output | fork ]

C, pasted on Jun 8:
1
2
3
4
5
6
7
8
9
10
11
12
#include <string.h>
#include <stdio.h>

i(char*s){*s^=*s?i(s+1),1:0;}

int main(){
    char * s = strdup("10101110101010010100010001010110101001010"); 
    printf("%s\n", s);
    i(s);
    printf("%s\n", s);
    return 0;
}


Output:
1
2
10101110101010010100010001010110101001010
01010001010101101011101110101001010110101


Create a new paste based on this one


Comments: