This was my first ever interview and the first question during the onsite.
Let's say there exists a typeof() function which returns the typeof something. It returns the usual "int","float","double" etc for variables. The interviewer then proceeded to ask what would be the typeof "cout". I did not answer this. I went back and searched. Looks like ostream is the correct answer.
He then proceeded to ask what would typeof() return for the main() function in C++. I couldn't find the answer on the internet. Any help is appreciated.