Answer This question has a compilation error. Explanation This overload is ambiguous. Why? There are two viable functions for the call f(-2.
Continue ReadingC++ Interview Question 2 Answer
Answer This question is compilable and deterministic. Its output is "22". Explanation A string literal is not a std::string, but a const cha
Continue ReadingC++ Interview Question 1 Answer
Answer This question is compilable and deterministic. Its output is "1". Explanation The templated function will be instantiated as void f(i
Continue ReadingC++ OS Operations
[pt_view id="0e11a89927"]
Continue Reading