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
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’.
Can enum be null?
What is variable example?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< just right the logic of it
1--> If few people are electing then every time ur candidate
should win
2--> arrange books in box, if box carry weight == books
weight then take another box..... find the no of box
required. hi all..i want to know oops concepts clearly can any1
explain?? when to use 'mutable' keyword and when to use 'const cast'
in c++ Why is abstraction used? what are the realtime excercises in C++? What is overriding vs overloading? What are two types of polymorphism? Plese get me a perfect C++ program for railway/airway
reservation with all details. Why do we use oop? Why do we use encapsulation in oops?