what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / madhavendrapratapshahi
C IS AN PROCEDURAL PROGRAMMING LANGUAGE.BUT C++
OBJECT ORIENTED PROGRAMMING LANGUAGE .C FILE EXTENSION
IS .C BUT C++ FILE EXTENSION IS .CPP .VARIBLE IN C
ARE CALLED DATA MEMBER IN C++. C++ SUPPORT FIVE
COCEPT OF OOP,S BUT C DOES NOT SUPPORT THESE CONCEPT.
WE CAN USE ALL FUNCTION IN C++ WHICH ARE USED IN
C LANGUAGE. IN C++ DATA MEMBER ARE DECLARE IN ANY
WHERE IN MEMBER FUNCTION.C++ SUPPORT DATA SECURITY OR
DATA HIDING BUT C DOES NOT SUPPORT THIS FUNCTION.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sandeep singla
1.c++ better than c because c++ uses classes and objects.
2.c++ bottom up approach but c is a top down approach.a
3.C USE #INCLUDE<STDIO.H> BUT C++ USE# INCLUDE<IOSTREAM.H>
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / abhishek kumar jha
actually c++ is an extension of c with a major addition of class construct features
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ramya
ABOUT (C)
-> C is a structured programming language.
-> C IS OBJECT based program that means C is also a object based application like structure and unions.
-> C does not support the C++ program.
-> C is a top to bottom programing.
->We can not do programs with the help of class, but programs through structure.
ABOUT(C++)
-> C++ is object oriented language that means entire application will be depending on object only.
-> C++ is the advance version of C.
-> C++ is a bottom to top programing.
->C++ support the C program.
->we can do programming through class in C++.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / madhavendra pratap shahi
c language is procedural programming language .and
c++ is a object orient programming language . c
support top to bottom approch.but c++ support bottom
up approch. which function are used in c we can
also use these function in c++. in c++ varible
are called data member and function are called are
called member function.c++ uses concept of class.
but c not support class concet.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / radha garg
C is developed by dennis ritchie at bell
laboratories.............
bt c++ is developed by bjarne stroustrup at at&t bell
laboratories in murray hill,USA,in early 1980,s
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / er.ashish singh
1)C++ allows the programmer to create classes, which are
somewhat similar to C structures. However, to a class can
be assigned methods, functions associated to it, of various
prototypes, which can access and operate within the class,
somewhat like C functions often operate on a supplied
handler pointer.
2)Although it is possible to implement anything which C++
could implement in C, C++ aids to standarize a way in which
objects are created and managed, whereas the C programmer
who implements the same system has alot of liberty on how
to actually implement the internals, and style among
programmers will vary alot on the design choices made.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / selva kumar.r
In C we should declare the variables only at the top, i.e.,
after header files.
Wheares in C++ we can declare the variables wherever we are
in need.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / amanpreet kaur
c is a middle level language but c++ is a high level
language. In c register variables cannot be addressed ,but
in c++ it is possible.
| Is This Answer Correct ? | 3 Yes | 0 No |
Is html an oop?
what is object oriented programming and procedure oriented programming?
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
what is ltti
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
What is encapsulation process?
Which is the only operator in C++ which can be overloaded but NOT inherited?
When is a memory allocated to a class?
What is polymorphism oop?
Why is abstraction used?
How oops is better than procedural?