[ create a new paste ] login | about

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

godneil - C, pasted on Aug 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# include <stdio.h>
int main(void)
{
    char string[] = "jesus is love";
    char *pointer = string;
    *pointer = 'J';

    printf("God is love %c \n", *pointer);
    printf("God is love %s \n", pointer);
    printf("God is love %s", string);

    
    return 0;

}


Output:
1
2
3
God is love J 
God is love Jesus is love 
God is love Jesus is love


Create a new paste based on this one


Comments: