Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> What is the output of the expression below?

> int i = 10;

> **++&&*+p;

> Followed by a myriad of options. Including things like Syntax error.

I consider myself fluent in C and to a lesser extent C++ -- that's a Syntax Error in C, at least.

This isn't a particularly difficult one to spot, but I can understand how it would be if you weren't very familiar the language.



They mix the correct ones and wrong ones in a way, in a time constrained situation.

Eventually your eyes will give being a lexical analyser.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: