Posted By: iuselitec
redeclaring variables - 02/13/08 06:51
void test()
{
int i = 10;
int i = 10;
}
if you do that with other compilers they complain about the second declaration of the variable. lite-c does not complain but what will happen? does it simply ignore the second int?
you can even do:
void test()
{
int i = 10;
float i = 10;
}
{
int i = 10;
int i = 10;
}
if you do that with other compilers they complain about the second declaration of the variable. lite-c does not complain but what will happen? does it simply ignore the second int?
you can even do:
void test()
{
int i = 10;
float i = 10;
}