I have an error
initializer element is not constant
when I initialize variable in global scope this is my wrong code
char x = 65 ;
int c = x ;
int main(void) {
printf("%d",c); /* prints !!!Hello World!!! */
return EXIT_SUCCESS;
}
but when i initialize int variable inside main functions it works correctly
char x = 65 ;
int main(void) {
int c = x ;
printf("%d",c); /* prints !!!Hello World!!! */
return EXIT_SUCCESS;
}