DEV/BUT1/DEV1.1/Adresses/alphabet.c

16 lines
271 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
char min, maj;
char *p = NULL;
for (min = 'a', maj = 'A'; maj <= 'Z'; min++, maj++)
{
p = (p == &min) ? &maj : &min;
putchar(*p);
}
putchar('\n');
return EXIT_SUCCESS;
}