#include<stdio.h>
int main(){
int main =22;
printf("%d\n",main);
return 0;
}
output:22 I am defining main as function and variable both even though compiler is not giving error. It should give error "error: redefinition of ‘main’ " . I am not able to understand why this code is working.