I had made this code that iterate through the alphabets using their ascii code
#include <stdio.h>
int main() {
for ( int alphabet = (int) char A = 'A'; alphabet <= (int) char Z = 'Z'; alphabet++) {
printf("The number of the Alphabet %c is %d\n ",(char) alphabet , alphabet );
}
}
but upon compiling it just say that it is expected to have an expression before char A or char B which I don't really understand what does that mean so any help will be appreciated xD