This segment of code only prints out blank lines. Key is the correct integer, but I must be handling the array of characters incorrectly. Thoughts?
int key = atoi(argv[1]);
for (int i = 0, c = strlen(plain); i < c; i++) //declare both variables in one
{
char ciphered[c];
ciphered[i] = (plain[i] + key - 64) % 26;
printf("%c\n", ciphered[i]);
}
}