Saturday 28 February 2015

HUAWEI

Questions from C :-
Swap the two numbers.
Find out the number of 1's in a number.
Swap a string.
Reverse a link list.
Difference b/w malloc and calloc.

Questions from c++ :-

Role of virtual function.
Why inline function ?
why do we use mutable keyword ?
What is the role of new and delete ?
Regarding inheritance and polymorphism.