We’re rewarding the question askers & reputations are being recalculated! Read more.
121
reputation
4

emil

int
main(int argc, char *argv[])
{
    char P[30000], *L[32], *p = P, *s, **l = L;

    bzero(p, sizeof(P));
    for(s = argv[argc - 1]; *s; s++)
        switch(*s){
            case '>': p++; break;
            case '<': p--; break;
            case '+': ++*p; break;
            case '-': --*p; break;
            case '.': write(1, p, 1); break;
            case ',': read(0, p, 1); break;
            case '[': *l++ = s; break;
            case ']': l--; if(*p)s = *l - 1; break;
        }
    return 0;
}
1
answer
0
questions
~666
people reached
  • Member for 2 years, 10 months
  • 0 profile views
  • Last seen Jun 28 '18 at 19:49

Top tags (2)

Score 2
Posts 1
Score 2
Posts 1

Top posts (1) All Questions Answers | Votes Newest

Badges (4)

Gold

Silver

Bronze

4

Rarest