I was wondering if it is allowed on Stack Overflow to answer a question that was asked by someone who is actually sitting with you in the same room.
There's nothing wrong with answering the question for someone sitting next to you, provided that:
- Other answers are being considered with the same weight as your own.
- There does not appear to be any abuse of the system.
Now... That said... Don't even think about voting and picking each others posts as best just because of proximity. You're not going to be friends that long anyhow, and these questions are here forever.
That and TylerShads gets angry.
Technically It is perfectly fine.
However, if a trend develops that you and another user are asking and answering each others questions and voting for each other, mod intervention may occur as that would be construed as gaming the system.
This would be followed by at least moderator contact and at worst a suspension from the site.