... about programming, growing up in the 1970's and 80's, games, science fiction, working in a charity book shop, films, spending too much time watching television, living in Basildon and Essex, and whatever else emerges from my fevered imagination. If you're reading this, it's your fault you clicked on the link: I am not responsible for your actions.
Sunday, 11 November 2012
Son of C Test
Yes, folks, I've got another C Test on Thursday this week, so brown trousers at the ready.
As a test for all you C/C++/C#/Java people, what's the output of the following:
int i = 12;
if (i = 13){
printf("Does this happen or not??");
}
(Yes, I know it's a mistake, but does it still work and what happens?)
No comments:
Post a Comment