What is the right way to typedef a type and the same type's pointer? Here is what I mean. Should I do this:
typedef unsigned int delay;
typedef unsigned int * delayp;
Or should I do this:
typedef unsigned int delay;
typedef delay * delayp;
Or perhaps I should not typedef pointer at all and just use delay *
instead of delayp
everywhere I find necessary?
Thanks, Boda Cydo.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…