First answer to my alphabet question:

void printAlphabet(void)
{
    char a[21];
 
    for (i = 0; i <26; i++)
    {
        if (i == 0)
        {
            a[i] = 'a';
        }
        else
        {
            a[i] = a[i - 1]++;
        }
    }
    a[26] = '\\0';
    printf("alphabet %s\\n", a);
}
 

Download this code: alphabet_1.c

This might print the alphabet… but it will crash… I recopy the program as is… there is no typo from my side.

After this question, I asked more questions on how to use array in C. This person was terribly confused on how to use array in C.