Why c++ is better than c language?



Why c++ is better than c language?..

Answer / Devesh Kumar Dubey

C++ provides several improvements and enhancements over C, including object-oriented programming features like classes and objects, namespaces, exceptions, templates, and improved standard libraries. These features make C++ more flexible, efficient, and easier to maintain.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain what is class definition in c++ ?

1 Answers  


Is there any difference between int [] a and int a [] in c++?

1 Answers  


How new/delete differs from malloc()/free?

1 Answers  


To which numbering system can the binary number 1101100100111100 be easily converted to?

1 Answers  


What are the different types of polymorphism?

3 Answers  


What is the purpose of decltype?

1 Answers  


What is isdigit c++?

1 Answers  


What are enumerations?

1 Answers  


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1 Answers  


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2

1 Answers  


What do you mean by stack unwinding in c++?

1 Answers  


if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3

3 Answers  


Categories