Hello:
Is it possible to declare a variable with multiple data types.
for example in my program I would like to declare my variable as int or char depending on the situation the variable is in as an example.
declare variable C
int K =cin();
if( K ==4)
C = 5;
else
C = '*'
thanks