/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include <ctype.h>
int main()
{
printf("Tableau de caractères \n");
char tab[8] = {'p','i','k','a','c','h','u','\0'};
for (int i = 0 ; i < sizeof(tab)-1 ; i++) {
tab[i] = toupper(tab[i]);
}
printf("%s\n", tab);
for (int i = (sizeof(tab)-2) ; i >= 0 ; i--) {
printf ("%c ", tab[i]);
}
return 0;
}