[ create a new paste ] login | about

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

godneil - C, pasted on Aug 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#  include <stdio.h>
int main(void)
{
    char love[] = "yhwh is love";
    char *ptr = love;
    *ptr = 'Y';

    ptr = ptr + 1;
    *ptr = 'H';

    ptr = ptr + 1;
    *ptr = 'W';

    ptr = ptr + 1;
    *ptr = 'H';

    printf("In the beginning %s",ptr);
    
    return 0;

}


Output:
1
In the beginning H is love


Create a new paste based on this one


Comments: