Quick question regarding string sizes
#3

Quote:
Originally Posted by Voxel
Посмотреть сообщение
What is the difference between having a variable that is to large like
pawn Код:
new string[1000];
//using the string here like to display "Hello" (wich is only 5 digits long)
you guys get what i mean.. so my question is like does this impact the performence or anything or ...?

thanks
Why would you use 1k large string when your 'Hello' string takes just 5 cells + NULL terminator. Using 1k large string for something that takes just 6 cells is just retarded.
Reply


Messages In This Thread
Quick question regarding string sizes - by Voxel - 20.11.2013, 10:52
Re: Quick question regarding string sizes - by newbie scripter - 20.11.2013, 11:03
Re: Quick question regarding string sizes - by Djole1337 - 20.11.2013, 11:26
Re: Quick question regarding string sizes - by Voxel - 20.11.2013, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)