[ create a new paste ] login | about

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

PhoeniX888 - C, pasted on Sep 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 #include<stdio.h>
#include<string.h>

int main()
{
    int i, n;
    char *x="Alice";
    n = strlen(x);
    *x = x[n];
    for(i=0; i<=n; i++)
    {
        printf("%s ", x);
        x++;
    }
    printf("\n", x);
    return 0;
}


Output:
1
Alice lice ice ce e  


Create a new paste based on this one


Comments: