Update test.c

This commit is contained in:
ihsinme
2021-05-02 22:59:56 +03:00
committed by GitHub
parent 21f43252e6
commit bb97507ebc

View File

@@ -6,10 +6,27 @@ void workFunction_0(char *s) {
buf[intIndex] = 1;
intIndex--;
}
intIndex = 10;
while(intIndex > 2)
{
buf[intIndex] = 1;
int intIndex; // BAD
intIndex--;
}
intIndex = 10;
while(intIndex > 2) // GOOD
{
buf[intIndex] = 1;
intIndex -= 2;
int intIndex;
intIndex--;
}
intIndex = 10;
while(intIndex > 2) // GOOD
{
buf[intIndex] = 1;
--intIndex;
int intIndex;
intIndex--;
}
}