disable a variable?

Hello all!
How can I disable a variable, or change it's type;
eg:
//...
int variable
//using it
//disable it
char variable
//using it as a charecter

If you can help, thanks in advence!
scope:

1
2
3
4
5
6
7
8
//...
{
    int variable
    //using it
}  //disable it

char variable
//using it as a charecter 
Topic archived. No new replies allowed.