DEV/DEV1.1/TP08:Adresses/alphabet.c

14 lines
236 B
C
Raw Normal View History

2022-11-08 11:29:38 +01:00
#include <stdio.h>
#include <stdlib.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 0;
}