May 17th, 2006

Tall ships (porthole)

(no subject)

LiveJournal Username
Choose a Weapon:
Favourite Colour:
Manages to shot themselves in the leg:jecook
Gets ganged up on by everyone:frodinia17
Can't figure out how to use their weapon:kires
Looks like they are in the Matrix:pteppic
Shoots randomly around the room:the_ladylark
Stays at home and eats Ice Cream:lorriejharris
Number of bullets you fired:1,057
Chances that you survive the battle:
18%
This Fun Quiz created by Melvin at BlogQuiz.Net
Check out Technology News updated every minute at NewsDump

Wow, that's a lot of bazooka rockets. No wonder I donit survive it if I have to lug that lot round - either that or I was camping the rocket spawnpoint and someone realised they can blow the rockets up from a distance.

Tall ships (porthole)

(no subject)

Pop quiz: what happens when you try to write beyond the end of an array?

Well, in Java the runtime quite rightly throws an ArrayIndexOutOfBoundsException.
In VB 6, assuming you've not disabled array bounds checks you'll get an error rasied.
In C, it'll happily let you scribble over whatever was after the array. Which in this case happened to be the loop variables. No prizes for guessing what happens when i is set to 0 in a loop that goes "for (i=0;i<foo;i++)"...