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; }
1 2 3
God is love J God is love Jesus is love God is love Jesus is love