c-basic/redefinition-if.c

9 lines
139 B
C

#include <stdio.h>
int main() {
int a;
if(1){
int a; // works, this a is only in scope of the if statement.
}
return 0;
}