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 the use of classes in c++;
Polymorphism with an example?
What is the difference between procedural programming and oops?
What does and I oop mean in text?
What is the highest level of cohesion?
What is memory leak and memory corruption?
what is data abstraction with example.
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
what is the use of template classes in c++
Program to check whether a word is the first word of the sentence.