what is the main difference between c and c++?
Answer Posted / prakash kumawat
c is function or procedure oriented whereas c++ is object
oriented.it focus primariy on tht actions and events and
the programming model focuses on the logical assertions
that trigger execution of programme code whereas c++is
focusedon writingprogramas thet are more readable and
maintainable and helps the reuse of code by packing a group
of similar objects,inheritance and polymorphism. C was THE
C++ predecessor. A lot of c remains in c++.In c, the
result of applying the operator size to a character
constant. for example:- size of('c'),equalssize of (int).IN
c++,the expressionsize of('c'),returns size of(char).
Is This Answer Correct ? | 191 Yes | 58 No |
Post New Answer View All Answers
What is abstraction example?
What are the 5 oop principles?
What is balance factor?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is variable example?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is encapsulation oop?
What is abstraction with example?
Why is abstraction used?
Can we define a class within the interface?
what type of question are asked in thoughtworks pair programming round ?
Can a varargs method be overloaded?
What is multilevel inheritance in oop?
How do you answer polymorphism?
why reinterpret cast is considered dangerous?