C ++ language of interview questions: the difference between C and C ++,

C is the foundation of C ++, C ++ and C language in many respects are compatible.

C is a structured language, it focuses on algorithms and data structures. Design of primary consideration is how the C program, the input (or ambient conditions) performs arithmetic processing or the output obtained by a process implementation (transaction) control.

C ++, the primary consideration is how to construct an object model, so that the model can fit the corresponding problem domain, so you can get the output or the implementation process (transaction) is controlled by the state acquiring object information. So the biggest difference between C and C ++ is that their ideas for solutions to the problem are not the same.

Guess you like

Origin www.cnblogs.com/yichengming/p/11456960.html