#include <stdio.h>

int main() {
char a[5];
/*
    a[0] = 77;
    a[1] = 65;
    a[2] = 77;
    a[3] = 0;
*/
    a[0] = 'M';
    a[1] = 'A';
    a[2] = 'M';
    a[3] = '\0'; 

    printf("%s\n",a);
    
    a[2] = '\0';
    printf("%s\n",a);    
}

Embed on website

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