Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
C++ has the concept of inheritance which helps to redundant code and can
reuse the existing classes.
C C++
In C language, data and functions are the free In the C++ language, both data and functions are
entities. encapsulated together in the form of a project.
C does not support the data hiding. Therefore, C++ supports data hiding. Therefore, the data
the data can be used by the outside world. cannot be accessed by the outside world.
C supports neither function nor operator C++ supports both function and operator
overloading. overloading.
In C, the function cannot be implemented inside In the C++, the function can be implemented inside
the structures. the structures.
In C, scanf() and printf() are mainly used for C++ mainly uses stream cin and cout to perform
input/output. input and output operations.
4. What is the difference between reference and pointer?
5. What is a class?
Class is a blue print which reflects the entities attributes and actions. Technically defining a
class is designing an user defined data type.
1. Understanding of pointers, through sample code.
5. Function pointers .
6. Calling conventions.
7. OOP concepts.
8. Concepts like copy constructor and assignment operator. These questions bring many
other concepts like shallow/ deep copy, memory allocation, shared resources.
9. Questions related to any of the performance optimization related real life problem
solved by the candidate.
13. How do someone iterates over containers. What is good way to do so.