Microsoft Interview Question

I faced a simple but interesting question. In a for loop condition statement, how can u invert the logic by changing a single character.

Interview Answer

Anonymous

Jan 10, 2013

Use the negetion ie tilde operator '~' before the test condition