/* strings1.c */
#include <stdio.h>

int main()
{
    int i;
    char str1[] = "Hello world";
    char str2[5];
    str2[0]='M';
    str2[1]='E';
    str2[2]='3';
    str2[3]='0';
    str2[4]='\0';
    printf("str1==%s\n",str1);
    for(i=0; i<5; i++)
    {
        printf("\nstr2[%d]==%c ",i,str2[i]); // NUL printed out as a CHARACTER
    }
    printf("str2[%d]==%d, last element printed first as a character, then as an integer\n",i-1,str2[i-1]);
    printf("str2[3]==%d, the decimal *value* of the ASCII *code* for ZERO\n", str2[3]);
    return 0;
}