DEV/BUT1/DEV1.1/Adresses/alphabet.c
2024-02-01 13:55:03 +01:00

16 lines
271 B
C

#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;
}