Are C and C++ the same?

Asked by Last Modified  

Follow 6
Answer

Please enter your answer

No
2 Comments

Trainer

C and C++ is not the same.Few differences are: 1. C is a procedural language while C++ is a procedural as well as object oriented language. 2. As C is not object oriented, it has several limitations ie, it does not have features like encapsulation,data hiding,overloading,polymorphism, virtual functions...
read more
C and C++ is not the same.Few differences are: 1. C is a procedural language while C++ is a procedural as well as object oriented language. 2. As C is not object oriented, it has several limitations ie, it does not have features like encapsulation,data hiding,overloading,polymorphism, virtual functions etc. which are all present in C++ as it's object oriented. 3. C does not support namespace feature while C++ does. 4. I/O functions used in C are printf and scanf while in C++, it is cin and cout. 5. C++ can be told as superset of C. 6. C is a function-driven language while C++ is an object drive language. 7. Data is not secured in C while its secured in C++ due to the OOPS feature,data hiding. 8. C uses calloc(),malloc(),dealloc() for allocation and deallocation of memory while C++ uses new and delete for the same. read less
Comments

Math Tutor

C is structure oriented and C++ is partially object oriented. C++ has advanced futures of C. The decision making statement such as "if , if else , switch, break and continue" are same in both C and C++. The major difference is we can use classes in C++ but not in C.
Comments

Engineer

They are not same because c is procedural oriented and c++ is object oriented 2.c does not use concepts like data hiding and polymorphism and c++ uses it
Comments

BE Computer

NO c and C++ are not same. C has several limitation . CPP is Object oriented programming.
Comments

C & C++ both are different language even though the C++ is inherits from C Language. C Language is totally function based and C++ is Class based which consists member function and data members.C is a procedural language while C++ is a procedural as well as object oriented language.In C language TOP Down...
read more
C & C++ both are different language even though the C++ is inherits from C Language. C Language is totally function based and C++ is Class based which consists member function and data members.C is a procedural language while C++ is a procedural as well as object oriented language.In C language TOP Down approach is used and C++ is used Bottom up approach. read less
Comments

Tutor

The major difference between C and C++ is that C is a procedural programming language and does not support classes and objects, while C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.
Comments

no man c is procedure programming language and c++ is object oriented programming
Comments

Are you looking for an Expert Friendly Tutor?

Frankly C++ is the super-set of C Language. If one knows C++ indicates he has knowledge of C as well. However programming pattern of C is solely structured programming but C++ supports object oriented. Bjerne Stroustrup when he designed C++, initially he has named it as C with Classes. By this you can...
read more
Frankly C++ is the super-set of C Language. If one knows C++ indicates he has knowledge of C as well. However programming pattern of C is solely structured programming but C++ supports object oriented. Bjerne Stroustrup when he designed C++, initially he has named it as C with Classes. By this you can judge that C++ is just an extended version of C, that is why it is named as C and plus and plus (kind of incremented). NOTE that everything that you have in C can be used in C++ in the same way (with few modification). read less
Comments

View 7 more Answers

Related Questions

Which is the best book for understanding concepts of c language?
One highly recommended book for understanding the concepts of the C language is "C Programming Absolute Beginner's Guide (3rd Edition)" by Perry and Miller. This book is well-suited for beginners and provides...
Chetana
0 0
7
Why do we use # in C programming?
In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow...
Dhanya
0 0
5
How do I learn C programming effectively? What is the best book?
Let Us C by Yasvant kanetaker and other books by same author on C programming
Sk
0 0
7
How do I write code in C programming that will invert a string like "Welcome to programming" to “gnimmargorp ot emocleW”?
void main() { char msg = "Welcome to Programming"; char str; int i = 0, j = 0; clrscr(); while (msg != '\0') { if (msg != ' ') { str = msg; j++; ...
Mukul
Is it necessary to mention the header files in the C programming language?
It is absolutely necessary as without inclusion of the same to your program, will lead to the absence of library functions that are present in the header files, your program will have a syntax error.
Hari

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C Program-Upper Case Demo
/*WAP to print the character entered by user in upper case*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ char ch; //Function for clearing screen clrscr(); ...

Why do pointers have a datatype?
Before we start with pointers you must know what is a variable and a datatype. int a; This is the basic line in every program in 'C' . It means that we are asking the compiler to give us 2 bytes of space...

C Language
To get help in C window (for keywords, functions) press Alt +F1.To delete a single line , use the shortcut key CTRL +Y.If you got error about the path when you execute a C pgm, check the Options menu =>Directories.
T

Thilagam S.

0 0
0

C Program Sample Application
//Standard Library Functions(Header Files used) #include<stdio.h> #include <conio.h> //Main method int main() { // function for clearing screen clrscr(); // function to print the output...

Pointers Concept
Every variable has a memory location and every memory location has its address defined which can be accessed using ampersand (&) operator, which denotes an address in memory. Consider the following...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you