English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Dear friends,
I want learning c++, so can i learn directly and diffrent betweel c and c++

2007-11-29 18:23:47 · 8 answers · asked by pathy 1 in Computers & Internet Programming & Design

8 answers

Hi Friend,
This is kiran kumar.G.(working on SAP).I will tell some of the differences between C and C++.

1. C is a procedural oriented language
C++ is a object oriented language(inheritence,polymorphism,abstraction features come in object oriented language)
Theory :If we want to use some variables in all functions in C,at that time u can redeclare that variable in functions that means u can redeclare the variable in C.where as in C++ this problem can be resolved by using INHERITENCE feature.

2. C does not support Exception Handling.
C++ support Exception Handling.
Theory: If u r executing ur C program if an error is raised, ur program will stop the execution of ur program.where as in C++ it does not stop the exection process due to exception handling feature.

3. C does not have Template class
C++ is having Template class

These are some of the differences b/w C and C++.

HAVE A NICE DAY..

2007-12-03 15:25:36 · answer #1 · answered by kiran kumar G 2 · 0 0

C is the procedure oriented language while C++ is Object Oriented language. C++ was developed to overcome the problems of program organisation where computer program gets bigger.

You can directly learn C++ without any difficulty

2007-11-30 02:35:19 · answer #2 · answered by Shariq (http://coinsindia.info) 5 · 2 2

C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.

2007-11-30 02:26:09 · answer #3 · answered by Javier S 2 · 1 2

You can learn C++ without ever having to look at C in any way.

The difference between the two is, C++ offers a larger toolbox to attack your problems than C does. But this does not affect the ability in using any of these languages to attack your problems.

2007-11-30 02:30:25 · answer #4 · answered by Anonymous · 0 2

The C and C++ programming languages are closely related. C++ grew out of C and is mostly a superset of the latter.
according to me learing c helps u alot to develop code in c++
as they resemble a lot!ALL THE BEST

2007-11-30 04:50:52 · answer #5 · answered by kunnu 3 · 0 2

The ++

2007-11-30 02:25:30 · answer #6 · answered by Anonymous · 0 2

A lot.
C++ supports classes, polymorphism, inheritance, operator overloading, etc. Check out Wikipedia

2007-11-30 02:27:05 · answer #7 · answered by mdigitale 7 · 3 3

"C" is basically the same computer language as "C++."

C++ can be thought of as a more updated and modern version of the C computer language. The name C++ comes from one of the added features. The "++" is actually an increment operator (i.e. "i++" means to take the value of "i" and add 1 to it.)

2007-11-30 02:28:08 · answer #8 · answered by Anonymous · 0 4

fedest.com, questions and answers