Array question
#4

You're correct in your presumption.

Example code:
pawn Код:
new chararray[50]="I like toast";
printf("%s",chararray[2]); //Gives output 'like toast'
printf("%s",chararray[sizeof("I like ")]); //Gives output 'toast'
(I'm not quite sure if the first one has to be 2 or 1, you would need to try)


I hope this helped you.
Reply


Messages In This Thread
Array question - by RSX - 27.11.2010, 19:11
Re: Array question - by boelie - 27.11.2010, 19:18
Re: Array question - by RSX - 27.11.2010, 19:41
Re: Array question - by DeathOnaStick - 27.11.2010, 20:00
Re: Array question - by RSX - 27.11.2010, 20:05
Re: Array question - by iggy1 - 27.11.2010, 23:32

Forum Jump:


Users browsing this thread: 1 Guest(s)