Reply to post: Re: C fun

Intellisense was off and developer learned you can't code in Canadian

Anonymous Coward
Anonymous Coward

Re: C fun

IIRC there is a C typo that gives one apparent iteration rather than 10

for (i=0; i<10; i++);

{

// do something 10 times

}

Someone once wrote a list of the 10 most common errors for someone starting to write in C - when they had been fluent in Pascal. IIRC Pascal FOR loops always did at least one iteration irrespective of the stated loop end condition.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon