I want to declare data type of a variable depending on a condition in C. Is it possible?
I have written a program to implement stack using integer array, and I want the same code to implement stack of characters which is nothing but replacing some "int"s by "char"s, So how to do that??
I trid something like,
if(x == 1)
#define DATATYPE int
else
#define DATATYPE char
and many other things too but nothing worked.