BUT2/DEV/DEV1.1/TP_adresses/q2.c

14 lines
247 B
C
Raw Normal View History

2023-10-23 13:23:36 +02: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;
}