What are advantages of C++ when comparing with C?
Answers were Sorted based on User's Feedback
Answer / hari krishna pillai
Well!! This will results long and very long answer or
discussion. To make it short, C++ is a general purpose
programming language with a bias towards systems
programming that It is a better C, supports Data
Abstraction, supports Object Oriented Programming and
Generic Programming.
Is This Answer Correct ? | 49 Yes | 8 No |
Answer / atreyee
A program in C is unstable compared 2 C++
Encapsulation,Inheritance in C++.
Is This Answer Correct ? | 28 Yes | 10 No |
Answer / mohana
stonger typing: the type system in c++ is stronger than in c
Is This Answer Correct ? | 24 Yes | 10 No |
Answer / a geek
We can not compare C to C++.
C++ programming is object oriented and and lot of features
which are no way achievable in C easily.
Is This Answer Correct ? | 20 Yes | 6 No |
Answer / shami
C++ IS A NEW VERSION OF C,WHICH ACHEIVES EASY WAY OF
PROGRAMING USING OO APPROACH.
Is This Answer Correct ? | 16 Yes | 6 No |
Answer / bhuvana
C++ is an object oriented programming language.And it has
the main features of classes & objects, inheritances,
polymorphism.
Is This Answer Correct ? | 12 Yes | 4 No |
Answer / hari prasanth
c is a computer programming language and c++ is a object
oriented programming language
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / swathi
c++ is an extension of c with some additional features like encapsulation,inheritance,etc. which makes the program to easily understand
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / k
c
c++ is object oriented program. the main advatage is we can reuse the code and well structured and secured...
c
Is This Answer Correct ? | 1 Yes | 0 No |
Explain friend class?
What is the difference between shallow copy and deep copy?
When should I use unitbuf flag?
Differentiate between a pointer and a reference with respect to c++.
In C++ cout is: a) object b) class c) something else
11 Answers Infosys, Lehman Brothers,
What is a memory leak c++?
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> 1……………… int main (void) { pid_t pid; 2………………………… pid = fork(); 3…………………………. if (pid > 0) { int i; 4………………………… for (i = 0; i < 5; i++) { 5………………… …………… printf(" I AM VU : %d\n", i); 6………………… …………… sleep(1); } exit(0); } 7………………… ……… else if (pid == 0) { int j; for (j = 0; j < 5; j++) { 8……………………………… printf(" I have no child: %d\n", j); sleep(1); } _exit(0); } else { 9………………………………fprintf(stderr, "can't fork, error %d\n", errno); 10……………… … ………… exit (EXIT_FAILURE); } }
What is the real purpose of class – to export data?
Which is the best c++ compiler for beginners?
Why was c++ made?
What is the best c++ compiler?
What is purpose of new operator?