#include <stdio.h>

char a[] = "ABCD";

int main() {
    int i;
    for(i=0; a[i] !='\0'; i++); 

    for(i-- i>=0; i--) {               //se all'inizio scrivo i=3 esce lo stesso output
        printf("%c", a[i]);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: