Since typedef is a storage class in C, it cannot be used with static variables. For example , typedef static int SI, SI a would not work. So is there any other way of using static with typedef?
I already know that this can be done #define SI static int.
You can’t.
typedef doesn’t declare an instance of a variable, it declares a type (type alias actually).
static is a qualifier you apply to an instance, not a type.