Guest_imported
New member
- Jan 1, 1970
- 0
im wondering if there is some way to get the data type of a variable that has been declared and then be able to declare another variable of the same type
like
int i = 6;
...//typeof i is now unknown
typedef typeof(i) NEWTYPE
NEWTYPE j; //j also becomes an integer
like
int i = 6;
...//typeof i is now unknown
typedef typeof(i) NEWTYPE
NEWTYPE j; //j also becomes an integer