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 |
What is abstrac class?where is it use?
Program to read a comment string
What is ambiguity in inheritance?
Difference between vector and array
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
Have you ever interfaced with a database?
what is object slicing
What is Virtual Keyword?
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.
How would you stop a class from class from being derived or inherited.
What is the full form of oops?
What is friend function?