I have written this code
and compiled it with "gcc -ansi -pedantic file.c" but still it is giving only warning but no error for declaring "i" after an action statement. Why ?Code:#include <stdio.h> int main() { unsigned char c; printf("%d\n",c); int i = 2; printf("%d",i); return 0; }