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