C interview questions
shape
inline
keyword in C++ is used to suggest to the compiler that it should attempt to generate inline code for a function call, instead of the normal function call mechanism (i.e., jumping to the function's code location). This can improve performance by avoiding the overhead associated with function calls, especially for small functions that are called frequently. this
keyword is a reference to the current instance of the class or struct in which it is used. It is used to access the members (fields, properties, methods) of the current object from within its instance methods or constructors. It provides a way to refer to the current object explicitly, which can be useful to disambiguate between class members and method parameters, or to pass the current object as an argument.