What is the different?
#3

Sizeof is used when arrays are involved. Plain constants in other cases (e.g. a MAX_PLAYER loop). I don't know how to explain this any better. It is generally more favorable to use the sizeof operator whenever arrays are involved since then the size will always be correct.
Reply


Messages In This Thread
What is the different? - by BrianS123 - 13.09.2016, 11:42
Re: What is the different? - by Mister0 - 13.09.2016, 11:47
Re: What is the different? - by Vince - 13.09.2016, 11:51
Re: What is the different? - by BrianS123 - 13.09.2016, 12:06
Re: What is the different? - by saffierr - 13.09.2016, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)