logoalt Hacker News

tremonlast Sunday at 9:11 PM2 repliesview on HN

Does this example even compile, given that ptr is not declared anywhere?


Replies

amy_petriklast Sunday at 11:19 PM

>Does this example even compile, given that ptr is not declared anywhere?

that comment was not a comment but an interview. and you just failed it.

maccardlast Monday at 10:43 AM

Nope, I also missed a semicolon at the end of the class definition. But I wouldn't ding someone for that in an interview.