#include <stdio.h>
void printString(char arr[]);

int main() {
    
    char *canChange = "Hello World";
    puts(canChange);
    canChange = "Hello";
    puts(canChange);
    
    // char cannotChange = "Hello World";
    // puts(cannotChange);
    // cannotChange = "Hello";
    // puts(cannotChange);
    return 0;
}


void printString(char arr[]){
    for(int i=0; arr[i] !='\0' ;i++){
        printf("%c",arr[i]);
    }
    printf("\n");
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: