hello friends,
is it a good or a bad technique to create variables inside an if statement?
for example
i have
there are two different programs, each of them has different variables, should i declare them before the first if statement or should i declare each of them in its own if statement?Code:if (choice == something){ here is one program } else{ here is another program } }
thanks in advance