Tech Mahindra Interview Question

About Classes in cpp, and some basic stuff in c.