[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...major differences between C and C++

<< Back to general questions

Question by india
Submitted on 6/30/2003
Related FAQ: N/A
Rating: Rate this question: Vote
what are the major differences between C and C++


Answer by Matthew Mondor
Submitted on 7/2/2003
Rating:  Rate this answer: Vote
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.

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.

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.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

 

Answer by Juergen
Submitted on 9/2/2003
Rating:  Rate this answer: Vote
Re Matthew: Well, yes and no. Actually C++ is a separate language in its own right that shares a lot with C.

Type checking for example is much more rigid in C++ than it is in C, so many a program that compiles just fine under a C compiler will result in many warnings and errors under a C++ compiler.

So, while C++ might be seen as "C with classes" by some, it actually is different and targeted at a different audience. C still is the best choice for code that has to be fast while still being reasonably readable and portable, eg. device drivers. C++ on the other hand is mainly used in large projects of millions of lines of code, where C code would become unmaintainable. This is mainly due to the possibility to reuse existing code by exploiting the OOP concepts of polymorphism and inheritance.

 

Answer by Reza
Submitted on 12/9/2003
Rating:  Rate this answer: Vote
I think C is much better than C++ since the syntax is much easier to  write.
Also it's really tiring to compile a C++
program.I really don't understand why they have made C++.I think just knowing C is enough.
Thats all.

 

Answer by paramesh
Submitted on 1/5/2004
Rating:  Rate this answer: Vote
oops concept is first difference &many more are there,i convey only c instead of c++.

 

Answer by Bio_Computer
Submitted on 2/24/2004
Rating:  Rate this answer: Vote
The C differ from c++ in these things :
1 the in put /out put in the c ( use printf , for the out and scanf for the input )
2 in c use #include<stidio.h>  , but in the c++ use #include <iostream>
3 in the c CAN NOT use the string type but you can declear  it as an array
4 also there are some deffereant  in function how write the function and how to call the function

these are what i remamber about the deffereance between then  
forgive me if i made any mistake
Bio_Computer
Kuwait

 

Answer by Prasad
Submitted on 4/24/2004
Rating:  Rate this answer: Vote
The main difference between C & C++  is the OOPS technology, C++ is an object oriented programing language, using which one can program using the objects that are been created. C++ have the provision of inheritence, constructors whereas you will not find these in C.
Still C is better then C++ because of its  easy and understable syntax !!!

 

Answer by not care
Submitted on 5/4/2004
Rating:  Rate this answer: Vote
who cares

 

Answer by Shibin
Submitted on 6/1/2004
Rating:  Rate this answer: Vote
The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.c++ is an advanced version of c which was made in 1980's in the same lab where c was also made and hence most of the features of c are contained in c++ also,but with a little difference in some of the syntaxes to make c++ more advanced Language.Besides these there is not much difference between them

 

Answer by Arun Sharma
Submitted on 6/25/2004
Rating:  Rate this answer: Vote
I think C is much more Easier than C++ due to its Syntax. Only Difference is the concept of OOPS.Really due to OOPS C++ is More Realiable than c.
But i will prefer to use C than C++.

 

Answer by pavan
Submitted on 7/1/2004
Rating:  Rate this answer: Vote
c++ is extension of c. c++ is super set of c.
the most important feature of C++ is that it is object oriented language.But there are some basic changes made in c++.
for example in c if function don't pas any parameter u have to explicitly write void in brackets.but in c++ you don't need to write.

 

Answer by THAMIZH
Submitted on 7/3/2004
Rating:  Rate this answer: Vote
I think C++ is better than C. Because C++ has OOPs concepts which C doesn't have. C++ is an extention of C. While programming in Java OOPs concepts are important. That's why C++ has been created to overcome C. Many new languages may be created in forecoming years.At that time we will be in position to accept that one. So, we should appreciate new languages in the latest trend. This is what I like.

 

Answer by capn_midnight
Submitted on 7/18/2004
Rating:  Rate this answer: Vote
As children, we knew very few English words, and expressing ourselves was difficult. As our vocabulary grew, our expressiveness grew as well. C++ still provides most of the features of C (and I am hard pressed to remember the ones it does not include), while adding many more features. Greater expressiveness with better flow of thought and ideas is the result.

 

Answer by Selva
Submitted on 8/2/2004
Rating: Not yet rated Rate this answer: Vote
i think C and C++ both are useful depending on the project...C is good but still C++ has many advanced features which makes it popular

 

Answer by neo
Submitted on 8/6/2004
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++ is that C isn't object-oriented. Okay---that doesn't actually tell you what you want to know; here are some details:


structs don't copy in C. That is, if a and b are structs then the line a = b; doesn't work. Nor will structs be fed into functions as arguments. The only way to deal with them sensibly is to use pointers to them, or to write functions to copy their elements explicitly. classes (with private members) don't exist in C.

There is no operator and function overloading in C. If a function has a name, then that's it---you can't have another version with the same name that does the same thing with different arguments, as you can in C++. The fact that << and >> (left and right shift) do output and input in C++ is a consequence of the ability of the language to overload those operators. Output and input in C are handled by functions called printf and scanf respectively (these also work in C++ if you want, of course).

In C storage allocation and de-allocation are not handled by new and delete but by a function called malloc. In general, the whole process is a bit more messy in C, but is not too bad once you get the hang of it.

 

Answer by s
Submitted on 8/16/2004
Rating: Not yet rated Rate this answer: Vote
that is what is that

 

Answer by brm@yoyodyne.com
Submitted on 8/18/2004
Rating: Not yet rated Rate this answer: Vote
Sigh.  C++ is no slower than C.  If you take a C program and compile it with C++ then the resulting code will run at the same speed, if not faster.  Some of the STL classes are "slower" than their C counterparts if you don't take into account their flexibility and the fact that you don't have to do as much error checking (which C programmers don't seem to care about anyway).  C++ code is often larger due to the massive amount of inlining and templating but this allows the optimizer to work on larger chunks of code.

In the end you can use C++ for anything you can use C for.  If you are not comfortable enough using C++ features, then stick to the C subset.  Just because C++ has high-level features doesn't mean you should use them in every situation.

One reason that that people think C++ is slower is that the original C++ compilers and frontends were pretty crummy.  That is no longer the case. Another reason is that people think of C++ as a high-level language with lots of runtime overhead.  C++ is a low-level, compile-time language.  The major reason that people think C++ is slower is that well-meaning C programmers are simply parroting what they heard from somebody else.  A final reason that C++ is getting a bad rap is that it is being bad-mouthed by C programmers who are just too farm-animal stupid to learn anything more expressive or complex than C.

And yes, I've done plenty of programming in C, BLISS, and machine code.  I designed embedded systems and I do it in C++ because the code is faster and more maintainable.

 

Answer by Lakshmisha.M.S
Submitted on 8/25/2004
Rating: Not yet rated Rate this answer: Vote
There are so many major difference between C and C++.

I will give you one major difference here.

C compiler cannot handle floating point and fixed-point values properly when compared to C++ compiler.


 

Answer by sammy
Submitted on 9/15/2004
Rating: Not yet rated Rate this answer: Vote
Well, im not a professional programmer but I have always thought anything "object oriented" more difficult than just writing a straight up program... After all, all computers have copy and paste... Then you don't have to worry so much about the syntax.

 

Answer by Rizwan Ullah
Submitted on 9/23/2004
Rating: Not yet rated Rate this answer: Vote
c++ is the power that is given to c
including  classes and oop features.

 

Answer by santosh kumar
Submitted on 10/3/2004
Rating: Not yet rated Rate this answer: Vote
The main difference is the way we think in both the languages:In c the prime concern is function and the data is given second preference whereas in c++ data is giver prime concern and functions or methods are built to operate on these data items.

 

Answer by v.shilpa reddy
Submitted on 10/5/2004
Rating: Not yet rated Rate this answer: Vote
C is procedure oriented language and c++ is object oriented language.In c there will be much more code redundancy,which is almost eliminated in c++ through inheritance and extra functionality can be appended easily in case of c++ program than in c.The main thing i like in c++ is data hiding which can't be done in c.I feel c++ is much more reliable than c.

 

Answer by Niranjan
Submitted on 10/7/2004
Rating: Not yet rated Rate this answer: Vote
C is always easy to understand and program than c++.
C is the base and c++ is the extension of C.
In C we are not dealing with complex parts such as linked lists, and also there are no concepts of constructors,overloading and templates are less.
Not only that the syntax is very easy as compared to C++.

 

Answer by babbli
Submitted on 10/14/2004
Rating: Not yet rated Rate this answer: Vote
as use of application, c++ is much more comfortable. for large application its ease to keep track in code. c++ contain most of the all features of c.
it good programing practice to use c++, coz it contains oop's features. for code reusebility.

 

Answer by jas
Submitted on 10/21/2004
Rating: Not yet rated Rate this answer: Vote
seeeeee

 

Answer by NO ID
Submitted on 10/27/2004
Rating: Not yet rated Rate this answer: Vote
i think every bady here are such a ------!!!!
with all my love

 

Answer by suman_badak
Submitted on 11/1/2004
Rating: Not yet rated Rate this answer: Vote
c is better than c++.i don't know sorry

 

Answer by VAIBHAV JAIN
Submitted on 11/13/2004
Rating: Not yet rated Rate this answer: Vote
The first major difference between C and C++ is that C is a POP(Procedure Oriented Programming) Language whereas C++ is a OOP.

C uses Top Down aproach and focuses on procedures.Data moves as such
Whereas C++ uses bottom up approach and focuses on data(Data hiding,Abstaction)

Dyanimic memory allocation in C by calloc() and malloc() In C++ by new and delete.

C recognizes only first 32 char of string whereas C++ do not pose this limit.

Prototyping is optional in C mandatory in C++

main() may not have a return type in C but return type mandatory in C++

We can assign a void pointer to a non-void pointer in C .No such concept in C++

     void *ptr1="vaibhav";
     char *ptr2="Vai"
     ptr2=ptr1  // valid in C




 

Answer by RAVI
Submitted on 11/22/2004
Rating: Not yet rated Rate this answer: Vote
"C" is a structural Language but "C++" is an object oriented language.

 

Answer by ibrahim
Submitted on 11/22/2004
Rating: Not yet rated Rate this answer: Vote
Dear reader's first of  all hello.
As you know that first c language made  and then they programmers tried to make a new language  such as  c++ .
c and c++ are samiller but only have some deffrinse which is that c++ is object onrianted programming and  and also in c++ defining of proto type of a function is must but in c is not must .like:
printf:prototype of printf is #(stdio.h) and it's neccessary  to define in the programe.
and it's

 

Answer by arun
Submitted on 11/29/2004
Rating: Not yet rated Rate this answer: Vote
the diffrence between c and c++
is,c is compatable,portabley,faster execution

 

Answer by Stuart
Submitted on 12/15/2004
Rating: Not yet rated Rate this answer: Vote
I've been learning C and getting confused, thinking it was C++!  I was fine all the way - it seems that pretty much all directives work as they would in C; in C++.

Apart from 1 - so far I have discovered that the string type kicks up errors about (string *) not being assignable to the 'void' type.

To get around this, either use an array, or compile your program in C.

 

Answer by balajee
Submitted on 1/7/2005
Rating: Not yet rated Rate this answer: Vote
C++ is better than C,there is some more advantages are there,such as "in C we only
able to declare the variable in global declaration part, but in C++ it is possible to declare a variable in anywhere in the program,according to this we will easily use the same variable again&again".

 

Answer by Amit
Submitted on 1/13/2005
Rating: Not yet rated Rate this answer: Vote
C++ is the post increment of C.

 

Answer by typer
Submitted on 1/13/2005
Rating: Not yet rated Rate this answer: Vote
I came here to find out the differences between c and c++ .... i agree with most things written so far.. and would like to add that c++ has all sorts of classes that c doesnt... therefore in many projects, c++ will have a much faster and more efficient development cycle.. but i think there will always be a place for the brute power and portability of ISO standard C (at least for another 10-15 years.. then who knows... maybe programs will write themsevles.. *dreams* )

 

Answer by Fundoo_Programer
Submitted on 1/14/2005
Rating: Not yet rated Rate this answer: Vote
yes yes ...I am very much in accordance with THAMIZH Bhaai , he is very correct. Every language has right to grow and live like we pepole have.

We should definately give the respect to C++ what it deserve as a language.

This is all i have.....to say...


Your Sincerely
Fundoo_Programer
Pakistan

 

Answer by A. Ansari
Submitted on 1/16/2005
Rating: Not yet rated Rate this answer: Vote
I think C and C++ both are using too much but depends on application.When speed does matter then there C is better than C++.But where Reusability,Modularity does matter and speed does not matter then there C++ is better than C...
    
  

 

Answer by aruboo
Submitted on 1/18/2005
Rating: Not yet rated Rate this answer: Vote
In c++,main function returns any of the data type but on the c it only returns as data type as integer.

 

Answer by balu
Submitted on 1/21/2005
Rating: Not yet rated Rate this answer: Vote
c++ is strongly typed language
c is weakly tyepd

 

Answer by babu
Submitted on 1/26/2005
Rating: Not yet rated Rate this answer: Vote
it support the concept of oops,but the syntax  is much harder than c.so both the languages has its own merits

 

Answer by rohan
Submitted on 2/4/2005
Rating: Not yet rated Rate this answer: Vote
c is procedure oriented whereas c++ is object oriented.
c++ uses the concept of data hiding

 

Answer by Shashwat
Submitted on 2/6/2005
Rating: Not yet rated Rate this answer: Vote
1) In C, a void* can be implicitly converted to any pointer type, and free-store allocation is typically done using malloc() which has no way of checking if "enough" memory is requested

2) When converting from C to C++, beware that C++ has more keywords than C:

int class = 2;    /* ok in C. Syntax error in C++ */
int virtual = 3;  /* ok in C. Syntax error in C++ */


3) Calling an undeclared function is poor style in C and illegal in C++. So is passing arguments to a function using a declaration that doesn't list argument types


At last but not least............
4) int main()
{
   int s = sizeof('a');    /* silent difference: 1 in C++ ,sizeof(int) in C */
}


 

Answer by Disha
Submitted on 2/7/2005
Rating: Not yet rated Rate this answer: Vote
The major difference between c and c++ is that the c++ is an object oriented language. moreover there are so many facilities in c++ which are not in c. obviously if it's the advanced version of c then there must be something more convenient, and that is it's syntax. now see,in c if one has to input something then he/she first has to concentrate at the format specifier, addressof operator ,like scanf("format specifier",&name of the variable); but in c++ one can write only cin>> variable name; without considering it's the string or int or float. Moreover, in c++ there are constructors that automatically initialize the variables , inheritance that will inherit the properties of another class. major issue is CLASSES, that are not available in c.so i am not saying that c is better or c++ is better. it doesn't matter what is better,matters only the usage of anything according to the requirements of the user. if one is comfortable with c then go with c else go with c++. matters only that how much your grip at particular language.

 

Answer by Brijesh Gaur
Submitted on 2/14/2005
Rating: Not yet rated Rate this answer: Vote
Basically C and C++ are entirely different languages as C is structured,C++ is object oriented language.
Object oriented makes C++ so powerful that enhances our functionality and coding technique.
Even no format specifier needed in C++ as we are using in c e.g %d,%f etc.


 

Answer by Enigma
Submitted on 2/21/2005
Rating: Not yet rated Rate this answer: Vote
A Very Brief Summary of How C++ Differs from C

http://fechner.ccs.brandeis.edu/programming/cvsc++.html

 

Answer by asdasd
Submitted on 2/22/2005
Rating: Not yet rated Rate this answer: Vote
asdasdas

 

Answer by Santhosh Durgam
Submitted on 2/22/2005
Rating: Not yet rated Rate this answer: Vote
c is a middle level language having both features of low level and high level language.its a structured and top down approach programming language.

c++ is a high level language because of its oops implementation.its object oriented programming language.

c has uses structures to bind data and data members but c++  uses Classes.

c has the limited reusability.
c++ extends its reusability with c++.

in C++ data can be represented as live entities with thier name as identifiers and reuse it.

for  standard input and output functions , c uses stdio.h header file and in c++ uses iostream.h.

Function prototyping is optional in c.
Functional prototyping is compulsion in c++.

Data hiding is possible with features of classes and its access specifiers.

 

Answer by kris
Submitted on 2/23/2005
Rating: Not yet rated Rate this answer: Vote
the main difference between C and C++ is
that C does not provide protection to the data since by default the data type declaration in C is PUBLIC,where as this is over come by C++ since by default the data type declaration in C++ is PRIVATE,more over C++ has additional properties such as inheritance,data-abstraction,data-encapsulation that's why it is called increment of C.In C++ we make use of templates to genralize the program which is the actual aim of the programmer which is not seen in C.

 

Answer by narendra
Submitted on 2/23/2005
Rating: Not yet rated Rate this answer: Vote
c++ is an extension to c . the main difference is in c++ we use oops concept polymorphism and re-usability of code,where as in c we don't have these features.but i prefer c to c++ because of its faster compiling time and its portability and easy syntax usage

 

Answer by Sushma
Submitted on 3/1/2005
Rating: Not yet rated Rate this answer: Vote
Major difference between C and C++ is, OOPs concept in C++. Also Reusability of code in C++

 

Answer by PANKY
Submitted on 3/6/2005
Rating: Not yet rated Rate this answer: Vote
C++ IS A SUPERSET OF C.C++ DIFFERS FROM C BY MEANS OF SUPPORTING OOP i.eC++ SUPPORTS FOR DATA ABSTRACTION,INHERITANCE,POLYMORPHISM,DYNAMIC BINDING,OP.OVER LOADING ETC.
C++ MAIN ALWAYS ALWAYS RETURNSOME VALUE.
C FUNC LIKE PRINTF,SCANF CAN BE USED UNDER C++HEADER FILE BUT VICE_VERSA IS NOT TRUE.
C CAN COMPILE THEIR PROGRAM FASTER THAN C++.

 

Answer by uniyex
Submitted on 3/9/2005
Rating: Not yet rated Rate this answer: Vote
I prefer writing UNIX shell. A its easier. B its interpreted!! Yippeee

 

Answer by big guy
Submitted on 3/12/2005
Rating: Not yet rated Rate this answer: Vote
Working in C++ is great.
A person who can exploit OOPS can do wonders with this language.C++ is better than C.
It just lags behind in the compile time.
For long codes C++ is very useful.
Its code is also simple,simpler than C in many cases.C has a simpler code than C++ while doing file systems.

 

Answer by PANDU
Submitted on 3/20/2005
Rating: Not yet rated Rate this answer: Vote
Complex floating-point type,const linkage,Comments,Conditional expression declarations,Implicit function declarations,Implicit variable declarations,Intermixed declarations and statements,Array parameter qualifiers,Boolean type,Character literals,clog identifier,Complex floating-point type

 

Answer by Caroline
Submitted on 3/21/2005
Rating: Not yet rated Rate this answer: Vote
About "Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.", how it works?

 

Answer by vinodhabraham
Submitted on 3/29/2005
Rating: Not yet rated Rate this answer: Vote
I am interested in c & c++.I want to know my rating.

 

Answer by supasiliconcoder
Submitted on 4/5/2005
Rating: Not yet rated Rate this answer: Vote
To me not only is C++ a "work smarter, not harder" kind of thing... It at'sa lot of very usefull features including classes, that are helpful even to the novice programmer. For one the cin and cout classes are king over C's input methods.

C++:
cout << "Enter two integers seperated by spaces: ";
cin >> x1 >> x2;

C:
printf("Enter two integers seperated by spaces: ");
scanf("%i %i", &x1, &x2);

The cin can be tested for a bool value in if, while, do-while and for...

int x;
cout << "Enter an integer:";
if (cin >> x) //Tries to assign input to x, fails if input cannot be converted to int.
cout << "That wasn't an int"

 

Answer by Bapan
Submitted on 4/8/2005
Rating: Not yet rated Rate this answer: Vote
Definitely C++ is better than C as it has OOP concept implemented on  it. But C is equally good.

 

Answer by Mohan Uppaluri
Submitted on 4/10/2005
Rating: Not yet rated Rate this answer: Vote
The main difference between C n C++ is OOPS.
C is a language through which u can implement the OOPS concepts if required,while C++ is tailor made for OOPS.

 

Answer by Richard
Submitted on 4/14/2005
Rating: Not yet rated Rate this answer: Vote
I have not yet experienced programming in C, on the other site I have great experience with C++ and I find my comparison between the 2 bias.

C is great but most of it's tools are still in the past, I give it 100% props when it comes to machine programming and power handlings.

C++ on the other hand has Improved enormously, looking at thing like borlands builder 6 it has all the power of robotics and server programming and simple codes.

Finally both of the programming languages have their own specifics like now most mechanical/electrical engineering students program using C, IT students concentrate more on the C++ sites

 

Answer by raghavendra kulkarni
Submitted on 4/22/2005
Rating: Not yet rated Rate this answer: Vote
First I preferd C language.
C language is more complex for big application.C++ is more reliable for big application.C does not supports oops concepts,like we can't create instance of function.But C++ supports oops in well formed.C language coding is cost effecting.But not c++.C language coding could not under stand easily by programmers,if it is more in lines.C++ can under stand easily because every thing in the form of class. c does not have more featurs like polymorphism,inheritence,fuction overoading,etc.But C++ supports all these stuffs.

 

Answer by Nalini Kanta Pattanayak
Submitted on 4/25/2005
Rating: Not yet rated Rate this answer: Vote
The main difference between c and c++ is that c is procedural language where as c++ is a object oriented language,c++ differs in OOPS concept from c,
2)--Other than this C++ uses const data,friend function,
3)--c++ structure can contain member function where c structure can not.
4)--The datatype typecast is different in c and c++.e.g(int i=50;float f=(float)i;will convert i int to float)but in c++(int i=50;float f= float (i);).
5)--Other differences are c++ uses its string Datatype where c does not,Boundary checking of array is not in c but in c++ .
6)--Exception handling is done in c++ but not in c.
7)--the input/output operation is done in c++ through cout and cin objects but in c it is done through printf() and scanf() functions..


 

Answer by prasanna_v_13
Submitted on 4/26/2005
Rating: Not yet rated Rate this answer: Vote
In C data moves around the system freely,that is there is no security for data,but in c++ data is given more importance.That is done using encapsulation.In c reusability is not possible but in c++ it is done by inheritance,that using the existing features of a class.The other feature is polymorphism which means "one interface multiple methods" which is not available in c.Thus Object Oriented Principles differentiates C++ from C.

 

Answer by Pan Gao
Submitted on 4/28/2005
Rating: Not yet rated Rate this answer: Vote
1.   C source code file name should be *.c and *.h for implement file and header file.

2.   Variables reference is not supported, so you should not use it in C.

3.   Structure definition is not the same in C++ and C

4.   new and delete operator is not supported in C, you should use malloc and free c function to replace it.

5.   In C, you cannot use template and template class.

6.   From C++ to C, you should exclude every STL, ATL, COM, MFC functions, classes usage. You should write your own code to replace the above functionality.

7.   In C, variable definition lies in the beginning of each function, whereas C++ you can put variable definition wherever you want. Therefore, You should move all variable definition that doesn’t lie in the beginning of each function to the beginning.

8.   Class is not supported in C, so you should convert all of class definition in C++ to structures and functions in C. You should also know there have automatic initialization and releasing resource procedure in C++ as constructor and destructor implementation but C has not. The following is a rule to port:

9.   The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type. In C, in default environment setting, sizeof returns the actual size include padding bytes inserted for alignment, whereas C++ doesn’t. So you should be very carefully about this situation.

10.   The int type is not a hardware-independent type. You should know, in 16-bit system such as Windows 3.1 environment, sizeof(int) = 2, whereas in 32-bit system such as Windows 2000 & XP, sizeof(int) = 4. Therefore, in C, you should try your best not use int. You can use long (4 Bytes) or short (2 Bytes). This is a critical problem especially for file read and write.

 

Answer by mahesh chandra
Submitted on 5/7/2005
Rating: Not yet rated Rate this answer: Vote
C++ IS BETTER THAN C BECAUSE IN C++ WE USE MANY NEW CONCEPT LIKE CONSTRUCTORS ,POLYMORPHISM(USE A SAME FUNCTION NAME MORE THAN ONE) AND WITH THE HELP INHERIENCE(IN INHERIENCE WE DERIEVE A NEW CLASS USING BASE CLASS) .

 

Answer by saki
Submitted on 5/13/2005
Rating: Not yet rated Rate this answer: Vote
I think C++ is better than C. C++ is used in large projects of millions of lines of code, where C code would become unmaintainable.C++ still provides most of the features of C.C++ has OOPs concepts.in c u wont find that.While programming in Java OOPs concepts are important

 

Answer by xyz
Submitted on 5/17/2005
Rating: Not yet rated Rate this answer: Vote
I think c++ is much better than c just because of its object oriented technology. Apart from this c++ supports inheritence, constructors etc  as well which are not supported by c. I feel these are the features which makes C++ more flexible than C. But as C is the initial language which we start with it is the best

 

Answer by elango
Submitted on 5/18/2005
Rating: Not yet rated Rate this answer: Vote
C++ is actually an extension of C. It supports OOPs concepts. But all these OOPs concepts can be implemented in C. But its the programmers' responsibility to do this in C. But in C++, the language has built-in capability to support OOPs concepts through classes. Most of the C programs will compile under C++ with/without some warnings. The main advantage of C++ is its maintainability and code reuse and sharing. Again code reusing and sharing can be done in C also but its programmers responsibility. C++ provides facilities through inheritance.
In syntax point of view there are some differences but the syntax of C are valid in C++, of course it may show some warning message. For example, for type conversion,
in C, it should be given as
           (type)variable
but C++ allows function like style as
         type(variable).

The decision to follow C or C++ is upto the programmer and the project which is to be done.

 

Answer by Prasad P N S D
Submitted on 5/19/2005
Rating: Not yet rated Rate this answer: Vote
The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.c++ is an advanced version of c which was made in 1980's in the same lab where c was also made and hence most of the features of c are contained in c++ also,but with a little difference in some of the syntaxes to make c++ more advanced Language.Besides these there is not much difference between them

 

Answer by Freaky
Submitted on 5/19/2005
Rating: Not yet rated Rate this answer: Vote
Main diff bet C and C++ are as follows,
C++ supports OOPS concepts, C doesn't
C++ supports inheritance, C doesn't
C++ supports constructors , C doesn't
C++ hard to code, but C is easy to code

 

Answer by ZARAGIRL
Submitted on 5/25/2005
Rating: Not yet rated Rate this answer: Vote
As everybody said my answer is also same that C language is easy to understand as comparatively to C++ and C++ has advanced OOPS concept OK thank bye

 

Answer by HokeyFry
Submitted on 6/6/2005
Rating: Not yet rated Rate this answer: Vote
I think C++ is better than C, because the concept of object oriented programming. It has saved my life on several occasions with every project I start. Rarely now will I ever not use a class in a program I use.

 

Answer by sowjanya
Submitted on 6/8/2005
Rating: Not yet rated Rate this answer: Vote
c++is a superset of c and has important elements added to it like classes,objects and object oriented programming.
c++ uses compile-time binding.
c++ programs are fast and efficient but however it sacrifices some flexibility in order to remain efficient.

 

Answer by chandan@ssi
Submitted on 6/28/2005
Rating: Not yet rated Rate this answer: Vote
besides all common answers,c does not supports function overloading which is a very imp. aspect of programming in c++.




 

Answer by john
Submitted on 6/28/2005
Rating: Not yet rated Rate this answer: Vote
In C and C++ the major difference is of the global variables. In C the global variable can be access by any user.but in c++ it can even though you want to access any variable you particular have to know to which member function it really belongs to.

 

Answer by Raghav
Submitted on 7/5/2005
Rating: Not yet rated Rate this answer: Vote
Ok dudes, got it. But whats the difference between main() in C and main in C++??
Also whats that thing which we can do in C but not in C++ apart from using extra keywords as variables which r provided in C++ and not in C. Do mail ur answers to raghav_100@yahoo.com. Thanx in anticipation...

 

Answer by sam
Submitted on 7/6/2005
Rating: Not yet rated Rate this answer: Vote
no,not at all

 

Answer by satya
Submitted on 7/18/2005
Rating: Not yet rated Rate this answer: Vote
In c++ we use namespace name std;
where as in c we need not.

 

Answer by RaviKrishna Nandikolla
Submitted on 7/20/2005
Rating: Not yet rated Rate this answer: Vote
C++ is object oriented and C is not. The main difference I feel C++  has alot more libarys availalbe for it (like the standard templete libary).

 

Answer by hard
Submitted on 7/20/2005
Rating: Not yet rated Rate this answer: Vote
c++ is GOD where as
c is GODFATHER

 

Answer by prathibha
Submitted on 7/25/2005
Rating: Not yet rated Rate this answer: Vote
c and c++ are not only have a great difference and also it very hardware  applicable language other than the assembly language .c is procedural based paradigm.But c++ is object oriented padadigm.in oops inheritance ,polymorphism,early binding and late binding,encapsulation are more important application.in oops the more preferances is given to data than the procedure.data is not allowed to move freely ,this is because of the concept of encapsulation.

 

Answer by Subbu
Submitted on 7/29/2005
Rating: Not yet rated Rate this answer: Vote
C is the only destination for a low level programming when the size is not big. When maintenance is become the priority C++is the best. Also it paves the designer to play with OOPS. With oops and the power of C makes C++ the best.

 

Answer by Neeraj
Submitted on 7/31/2005
Rating: Not yet rated Rate this answer: Vote
Casting is different in C++ .Remaining Whatever u do in C++ , u can do it in C.

 

Answer by hiren_patel
Submitted on 8/1/2005
Rating: Not yet rated Rate this answer: Vote
I think there is no difference between c and c++,just syntax is difference and as i know
no one will give me a major dofference between them.

 

Answer by kln
Submitted on 8/3/2005
Rating: Not yet rated Rate this answer: Vote
c++ supports OOPS concepts where as c do not support this feature.In c++ the data has security but the data in c do not have any security i.e any body can access.

 

Answer by kln
Submitted on 8/3/2005
Rating: Not yet rated Rate this answer: Vote
c++ supports OOPS concepts where as c do not support this feature.In c++ the data has security but the data in c do not have any security i.e any body can access.

 

Answer by premlal (mca 3rd sem)
Submitted on 8/4/2005
Rating: Not yet rated Rate this answer: Vote
i think c++ is better than c.because c++ has oops concepts thats all.

 

Answer by kaleem
Submitted on 8/5/2005
Rating: Not yet rated Rate this answer: Vote
ONE OF THE DIFFERENCES BETWEEN C AND C++ IS THAT IN C WE HAVE TO DECLARE ALL THE VARIABLES
BEFORE THEY ARE USED BUT IN C++ VARIABLES MAY BE DECLARED AT THE CONVENIENCE POINT.

 

Answer by nav
Submitted on 8/9/2005
Rating: Not yet rated Rate this answer: Vote
c++ is an object oriented program where as C is not..c++ has a greater advantage than c . As the inheritance concept of C++ does a lot , it has a greater advantage of working with c++.. where as using functions in c++ is much more easier than in c. as far as i know these are the major differences between C & C++.

 

Answer by shrikant
Submitted on 8/10/2005
Rating: Not yet rated Rate this answer: Vote
c is the top down programing but c++ is the bottom to up programing.

 

Answer by dagger
Submitted on 8/15/2005
Rating: Not yet rated Rate this answer: Vote
soz for the question in the ans, but there ant no place to submit questions.. anyway. im expected to convert a program from c to c++, now besides the libraries wht else will i have to change. the c program has piles of data matrix's how am i able to either call these as individual programs or something.. soz only learnt c++ like 2yrs ago havent done c. where is a place im able to find the coresponding libraries in c++ that are c, an example was in c use #include<stidio.h>  , but in the c++ use #include <iostream>,
im usign the following
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
what would these be in c++. thankz

 

Answer by teh-pie-meister
Submitted on 8/15/2005
Rating: Not yet rated Rate this answer: Vote
I want to learn a language wich one should i use? C or C++?

 

Answer by Vijay
Submitted on 8/18/2005
Rating: Not yet rated Rate this answer: Vote
C++ has more advantages than c. we can hide datas from others. It supports data security and run time overloadings. C++ supports the modularity approch programming. Also c++ contains the all facilities of C.

 

Answer by suneetha,cbit,hyderabad
Submitted on 8/22/2005
Rating: Not yet rated Rate this answer: Vote
differences are
   c                                c++
1)procedure                  1)oop
oriented
2)top down approach          2)bottom up
                             3)dynamic    
                              initialization
4)maintanence                4)easy
is difficult

 

Answer by haroon shahzad
Submitted on 8/24/2005
Rating: Not yet rated Rate this answer: Vote
I think c++ is totley different languge from c.both have own compilers. compiling time, compiling style also differe. compilign speed of c is larger then c++. c++ has some extra feature like OOPs.but they share the standered codes.it is similarity. in end i will say c and c++ are totely two diffrent languages.

 

Answer by syed sajid
Submitted on 8/25/2005
Rating: Not yet rated Rate this answer: Vote
The differences are :
1.C is strongly typed,but C++ is not
2.Access specifier in C is public,whereas in      
  C++ it is private.
3.Declaration of datatype can be done
  anywhere in the program in C++,but it is not
  possible in C.
4.C++ supports class string,but not C.
5.C++ supports inheritence,polymorphism &
  encapsulation,whereas C doesn't support.
6.Data hiding is possible in C++,but not in C
7.In C++ we can just use #include<iostream>
  (even #include<iostream.h>not required for
   latest edition compilers) which includes
  for all display,and standard library,
  instead of using #include<stdio.h> and
  #include<conio.h> as in C.
8.All the functions of C can be used in C++,
  but it is not possible the other way.

Here are some of the differences,not all.

 

Answer by venkanna
Submitted on 8/29/2005
Rating: Not yet rated Rate this answer: Vote
c and c++ are equal but c++ is  have more instructions than c.

 

Answer by amdappas@sify.com
Submitted on 8/29/2005
Rating: Not yet rated Rate this answer: Vote
Multiple Inheritance
When the number of base classes Inherited exceeds one then the type of inheritance is known as Multiple Inheritance.
For example in C++, The syntax:
Class D: public A, public B
{
   //code
}


Indicates that D inherits the attributes of the two classes A and B.
Though Multiple Inheritance sounds exciting and very useful it has its own drawbacks, owing to which most OOP languages deny support for this feature. These drawbacks include complexities involved when inheriting from many classes and the difficulty in managing such codes.

In C#, you can specify only one base class for any derived class that you create. C# does not support the inheritance of multiple base classes into a single derived class (i.e. Multiple Inheritance). This differs from C++, in which you can inherit multiple base classes. You can however, create a hierarchy of inheritance in which a derived class becomes a base class of another derived class (i.e., Multilevel Inheritance)

Multilevel Inheritance
You can built hierarchies that contain as many layers of inheritance as you like. As mentioned, it is perfectly acceptable to use a derived class as a base class of another. For example, given three classes called A, B and C, C can be derived from B, which can be derived from A. When this type of situation occurs, each derived class inherits all of the traits found in all of its base classes. In this case, C inherits all aspects of B and A.

 

Answer by John Doe
Submitted on 8/30/2005
Rating: Not yet rated Rate this answer: Vote
C was originally written as a language that was as powerful as assembly but is also portable to other platforms.  There is a common realm of thought that if the PDP-11 had supported "XCHG" instructions, we'd see them as operators in C.

C++ actually evolved from C so those who say "it's another language entirely" are not correct in my opinion.  Original C++ compilers actually generated C code.  Infact, C++ grew from the field as people used C++ in absurd and obscure ways those obscurities actually made it into the language as standards!  No matter how bad the programming methodology was!

This is C++'s fatal flaw, being backwards compatible with C.  The flexiblity of C, essentially a "macro assembler" which "high level constructs".  This doesn't make for good voodoo!  As a high level language it provides a more rigid interface and hard to expand model.  The implicit operations of C++ also make it harder to read, harder to maintain and harder to figure out exactly wtf the scope of something is.

They state that C++ is "OO" however, C can be written as OO as well.  OO is not langauge syntax but rather how the design is constructed.  Just because you use "class" doesn't automatically make your code, "OO" which is another common mistake.  Actually, if you can't understand how to do "OO" in C, you actually shouldn't be writing it in C++ because you definately don't understand "OO"!!!!!

C++ has lots of bad things such as pass by reference, operator overloading, multiple inheritence and copy constructors.  One of the main goals of an "abstraction" is just that.  The user doesn't need to know the details of how it was implemented to use it.  Unfortunately, this is not the case with C++.  You NEED to know how it was implemented in order to use it.  For example, is that implicit copy constructor a shallow or deep copy?  I better know before I pass anything by value!  What the hell does the "+" do?  By the function name, I really have no idea.  Will "-" work on the same data?  I'd rather see a function descriptive NAME rather than a + or - if it's not a real mathematical operation.

Functions and variables are hard to scope.  If you see them in a class you have no idea where they came from.  Are they global? Are they in some nth inherited class?  How about classes that reuse function names of real functions?  Hard to track down what one is being used and you could make mistakes!

What about ease of implementation?  Arrays can be dangerous with polymorphism!  Typecasting back to a base class and indexing will cause corruption of data!!! AND THIS COMPILES FINE!  Now to write a simple array you have to write hundreds of lines of code to do something so simple.  So there's trade offs, to do something simple you need to write tons of code!

C is easier to read and understand.  There are less keywords to make it simpler to optimize and figure out what's going on.  If you consider that people can write bad C code and C++ includes C and more, then obviously C++ is a disaster waiting to happen because you have all the bad habits that can occur in C (from a few simple keywords) to everything new that you can do (a ton of complex, hard to read and understand functionalities and implicit operations).

All in all, if you want high level constructs, use a high level language like Java or C#.  If you want lower level constructs, use C or assembly if need be.  However, never use C++!!!!!!!!!

 

Answer by SUBBU
Submitted on 9/1/2005
Rating: Not yet rated Rate this answer: Vote
C is still speedy processing than c++ because all games are written in c

 

Answer by Earl Purple
Submitted on 9/1/2005
Rating: Not yet rated Rate this answer: Vote
- C++ has better support for the Object Orientated Paradigm.
- Classes come with private members and methods improving encapsulation.
- Polymorphism, as virtual functions replace the need for passing pointers to functions, and are much more powerful.
- Operator overloading allows for cleaner-looking code. (Who said the syntax for C was much nicer?)
- Templates allow code reuse with different types while retaining type-safety
- Inline functions which are safer than macros.
- Automatic destructors that are called at end of scope allow for easier memory and resource management issues (RAII).
- The standard library useful classes, including string, vector, map etc. Although algorithms are free-functions so that might be considered a "C" concept, their use of templates ensures both type-safety and can allow the compiler to inline, which will actually improve performance (particularly std::sort is often faster than qsort, note all those above who say C is faster).
- Exception handling also makes code look cleaner than having to check return values of all your function calls.

 

Answer by kathir_nth
Submitted on 9/3/2005
Rating: Not yet rated Rate this answer: Vote
While comparing c and c++ ,we may say that c++ better than c becuse it has more features such inheritance concepts ,class &objects ,polymorphism.But C is preferred better for its SIMPLER syntaxes.

             thank you,  yours rajiv





 

Answer by mallaiah_papinni
Submitted on 9/5/2005
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++:
1.C++ supports Object Oriented Progrmming concepts whereas C doesnot.
2.Execution speed is fast in C ,but it is not in C++.
3.C is portable ,easy understandable and maintainable whereas C++ is not.
4.There are so many differences in declaring/defining the structures ,variables and methods .
5.I preferably support C rather than C++.

 

Answer by Rafi
Submitted on 9/14/2005
Rating: Not yet rated Rate this answer: Vote
c has no plus signs....where as C++ has two plus signs...

 

Answer by Ahmeduddin Farooqi
Submitted on 9/19/2005
Rating: Not yet rated Rate this answer: Vote
The main difference would be the concept of OOP.
A variable of a new class type is seldom referred to as a variable. It is instead called an instance or an object.

 

Answer by SRI ABHI
Submitted on 9/20/2005
Rating: Not yet rated Rate this answer: Vote
c++ is super set of c. The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.In c if function don't pass any parameter u have to explicitly write void in brackets,but in c++ you don't need to write. THE MAJOR DIFFERENCE IS WE CAN USE TEMPLATES IN C++,BUT CANT BE USED IN C.We use UNION in c but not in c++. NEW operator is used in c++ not in c(to allocate memory for a variable).

 

Answer by zamanfar
Submitted on 9/27/2005
Rating: Not yet rated Rate this answer: Vote
c is more easier than c++ b/c c++ is an oop language and c is simple.
so i think that c is not more relieable than c++.
it has more powerful than c.

 

Answer by Jayakar
Submitted on 10/2/2005
Rating: Not yet rated Rate this answer: Vote
why java does'ntsuppots the multiple inheritance?

 

Answer by DSL
Submitted on 10/6/2005
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++ is way of implementation of STRUCTURE and in addition C++ supports OOPS.
C++ has more keywords than C. If you compare in speed C has upper hand than C++ .But, if you take reusing of code C++ has upper hand.So, its all depends . We cannot say either C++ is better than C or C is better than C++.Both have their own advantages.

 

Answer by james
Submitted on 10/7/2005
Rating: Not yet rated Rate this answer: Vote
c lang has a structure where as c++ it doesnt hav any structure. the main diff b'ween c & c++ in syntax,way of execution and moreover c++ supports oops concept.I go for c b'coz c is evergreen and easy to understand and maintained.For every where there is a prob so c++ is an enhancement of c thats all.

 

Answer by Best
Submitted on 10/13/2005
Rating: Not yet rated Rate this answer: Vote
C is suitable for systems software where efficiency and performance are sort first. C++ is good where design is based on OOP concept. C is procedural while C++ is object oriented based.

 

Answer by bai
Submitted on 10/13/2005
Rating: Not yet rated Rate this answer: Vote
the differnce between c and c++ i s oops concept and c++ has no pointers concept whereas in c it is thier

 

Answer by c++ rules
Submitted on 10/17/2005
Rating: Not yet rated Rate this answer: Vote
i hardly understand why people find C syntax easier than C++ syntax. The main difference is data structures, OOP(object oriented programming) however we can create structures in C. But C++ syntax is more easier. For example in linked list you can use malloc function with a lot of pointers,type conversions, and reference variables but in C++ there is no need to write that complicated codes.
luve..
Turkey

 

Answer by Chethan Basavaraj from s-pet. coorg.571236
Submitted on 10/20/2005
Rating: Not yet rated Rate this answer: Vote
About C:
1. C is a procedure oriented language.
2. It supports a Multiline comment.
   i.e, (/*   */).
3. It does not use Strict-type checking.
4. It does not contain Scope resolution
   operator.
5. All the variables must be declared
   before the first executable statement.
6. The Keywords new and delete are not  
   Available.
7. It does not provide default arguments.

About c++:
1. Object-oriented language.
2. Both single line(i.e,//) and multiline
   comment statement.(i.e, /*  */).
3. Strict type checking.
4. Contains Scope resolution operator.
5. Variables are Declared at any point where
   they are required.
6. new and delete r available.
7. Provides default arguments.

----------------------------------------
Developers:

C:  Dennis Ritche in 1972.
c++: Bjrane Stroustrup in 1980s.

 

Answer by Vaishali
Submitted on 10/22/2005
Rating: Not yet rated Rate this answer: Vote
Everything you can do in C which C++ can.
Still C++ Provides most reliable way to do the things by providing OOPs concepts which are not applicable to C. By providing OOps concepts C++ has provided the groupism of functionality. e.g. Encapsulation for object security, polymorphism for poratability, virtual/abstraction for memory management etc. etc. and many more. To implement all these things in C first programmer will have to make his own design pattern and he will have to write so much extra code for making this design pattern itself. But in C++ it is already there. Due to power of OOPs COM/DCOM are on the top of technology.

 

Answer by thiru
Submitted on 10/24/2005
Rating: Not yet rated Rate this answer: Vote
i don't know

 

Answer by shawn
Submitted on 10/27/2005
Rating: Not yet rated Rate this answer: Vote
c++ is different mainly because of the oops(object oriented programming) concept

 

Answer by pravin
Submitted on 11/4/2005
Rating: Not yet rated Rate this answer: Vote
1> c is procedure oriented but c++ object oriented;
2> it does not use type checking but c++ use type checking strictly;
3>for allocation of memory c++ use new and delete operator but in c malloc and alloc;
4>c does not provide default argument but c++ provide

 

Answer by RAJESH
Submitted on 11/8/2005
Rating: Not yet rated Rate this answer: Vote
C IS THE BASE FOR LEARNING C++

 

Answer by Ritika Dogra
Submitted on 11/10/2005
Rating: Not yet rated Rate this answer: Vote
As i think,C is the core of C++.C++ is an advacement in C.The only diffrence between C and C++ is OOPS concept.As in OOps programming,we not only define the type of data structure but also the type of operations that can be applied to data structure.In this way data dtructure becomes an object that includes both data and functions, in addition user can create relationships between an object and another

 

Answer by Deepak Gala
Submitted on 11/24/2005
Rating: Not yet rated Rate this answer: Vote
C was introduced by Dennis Richie and its limitations were
1. Non Object Oriented
2. Complexity
3. Bad Memory Management

On the other hand, C++ was developed by Bjarne Stroustrup and was initially called C with Classes. The four pillars of C++ are
1. Inheritance (eg a child class can inherit features of parent class)
2.Polymorphism (Ability to take many forms)
3.Encapsulation (Binding of methods and data together)
4.Abstraction (Hiding the Implementation from the user)

But still to C leads the C++ in terms of speed, as C++ applications are much slower when they are compiled and also during the run time. There are lots many differences between the two. But for the time being, I will end up here.

 

Answer by mangeshanagha
Submitted on 12/1/2005
Rating: Not yet rated Rate this answer: Vote
basically c is a procedure oriented language and c++ is object oriented language

 

Answer by Rajnish Ranjan
Submitted on 12/2/2005
Rating: Not yet rated Rate this answer: Vote
Two major difference between c and c++.
1--> c is a procedural language but c++ is procedural as well as object oriented language.

2--> in run time object oriented application are slower than c application and at compile time c++ application are much slower than c application.

 

Answer by Shafi
Submitted on 12/2/2005
Rating: Not yet rated Rate this answer: Vote
1.c importance functions & c++ importance Data
2.c cannot importance function prototype c++ important function prototype
3.c first declare variable  declaration & c++ declare in anywhere throughout Ur program
4.c structures declare data only in c++ class declare data & member functions

 

Answer by Karan Malhotra
Submitted on 12/3/2005
Rating: Not yet rated Rate this answer: Vote
I think that the main most basic difference between c & c++ is that in c++ we have the protection of input variables by defining the variables in private where as in c due to complicated calculations the input variables may change ,this is only the main concept of oops in c++.

 

Answer by kanitha
Submitted on 12/4/2005
Rating: Not yet rated Rate this answer: Vote
i learnt c a little bit.but now only iam going to learn c++. For input and output in c we use printf and scanf statements. But in c++ we use cout and cin as input and output statements.In c we use <stdio.h> as header and in c++ we use <iostream.h> as header.

 

Answer by anubhav
Submitted on 12/15/2005
Rating: Not yet rated Rate this answer: Vote
Well, C++ is just an extension to C, C++ is more powerfull than C, The main difference between C and C++ is the use of OOPs concept in C++,
any code written in C can be converted into C++ using OOPs(classes and all)

 

Answer by tnk
Submitted on 12/16/2005
Rating: Not yet rated Rate this answer: Vote
c++ has ++ signs after c, where as C has only C this is the Main difference

 

Answer by Anupma
Submitted on 12/16/2005
Rating: Not yet rated Rate this answer: Vote
C++ is the incremented version of C. or we can say that c + oop concept = c++

Major differences between c and c++ are:
1. C supports  classes and thus more closer to real world.

2. C++ is object oriented language and thus supports object oriented feature like inheritance, data encapsulation, polymorphism etc.

3. Data or code can be reused through inheritance.

4. Data can be hidden if required.

And many more differences ..........

 

Answer by Tarun Dabral
Submitted on 12/18/2005
Rating: Not yet rated Rate this answer: Vote
C++ is a object oriented programing language.This is useful for function overloading ,Operator overloading ,object Concept,so i prefer
C++,C has only simple syntax .

 

Answer by abdullah
Submitted on 12/25/2005
Rating: Not yet rated Rate this answer: Vote
C is better while hardware programming but in the case of other desktop application C++ is better.. C is fast then c++ that is other diff

 

Answer by abdullah
Submitted on 12/25/2005
Rating: Not yet rated Rate this answer: Vote
C is better while hardware programming but in the case of other desktop application C++ is better.. C is fast then c++ that is other diff

 

Answer by rose_love
Submitted on 12/26/2005
Rating: Not yet rated Rate this answer: Vote
A high-level programming language developed by Bjarne Stroustrup at Bell Labs. C++ adds object-oriented features to its predecessor, C. C++ is one of the most popular programming language for graphical applications, such as those that run in Windows and Macintosh environments.

A high-level programming language developed by Dennis Ritchie at Bell Labs in the mid 1970s. Although originally designed as a systems programming language, C has proved to be a powerful and flexible language that can be used for a variety of applications, from business programs to engineering. C is a particularly popular language for personal computer programmers because it is relatively small -- it requires less memory than other languages.

 

Answer by viji
Submitted on 12/30/2005
Rating: Not yet rated Rate this answer: Vote
c emphasis is on doing things,but c++ is on data rather then procedure.Top-down approach in c, in c++ its bottom-up approach. The programs are divided into function in c, but in c++ it is called object. in c data is move openly around the system from function to function,but in c++ datas are hiddenand can not accessed by external function.

 

Answer by raghu
Submitted on 1/9/2006
Rating: Not yet rated Rate this answer: Vote
c is most better Han c++ why because
1)c is a programming language and c++ object oriented language.
2)syntax of c is very easy
3)c++ maintains inheritace and consructors.
4)c++ maintains the oblects.

 

Answer by c_bond
Submitted on 1/12/2006
Rating: Not yet rated Rate this answer: Vote
following are differences:
1. c++ allows oop concept but c doesnot allow oop concept.
2. c++ allows facilities like encapsulation, data hiding, modularity,inheritence which c doesnt allow
3. variable declaration in c should happen before any executable statement but it can be done in c++ anytime.
4. c is aprocedural programing but c++ is object oriented.
5. in c++ it is necessary to function declaration before main function but in c integer and void function doesnt require function decleration before main function
6. c doesnt have iostream header file but c++ has.  

 

Answer by sasidhar
Submitted on 1/20/2006
Rating: Not yet rated Rate this answer: Vote
The main difference is the SYNTAX.
Another may be the running time.
But major thing is the syntax which has been already mentioned.

 

Answer by anil
Submitted on 1/24/2006
Rating: Not yet rated Rate this answer: Vote
why c laguage is platform depemdent and java is platform independent

 

Answer by ali haider
Submitted on 1/25/2006
Rating: Not yet rated Rate this answer: Vote
i think c++ is an advance feature of c. when we are working in c we are limted with objects but when c++ have four feature we can say four pillers polymarphisam inheritance etc.this allow a programmer to work comfertably

 

Answer by Ram
Submitted on 1/30/2006
Rating: Not yet rated Rate this answer: Vote
Actually C++ is nothing but c with classes.
Hence the first difference is C is not object oriented whereas C++ is object oriented.
Next C cannot handle projects whose size varies around 25000-100000 lines of code.
  but it is possible with C++.
  Next C is more easier than C++  due to its syntax.

 

Answer by Ashutosh
Submitted on 2/2/2006
Rating: Not yet rated Rate this answer: Vote
C++ is powerful than C not only because of the OOP structure but also because of its other capabilities like STRONG TYPE CHECKING. It enforces you to check the type a variable before you assign it to something else. In that respect you also have Casting operators to use them ... they are provide again for the programmer to think before casting one type to other.

Other difference include defination of function multiple times etc.

 

Answer by mann
Submitted on 2/2/2006
Rating: Not yet rated Rate this answer: Vote
i also think c++ is better than c because if we read c++ after that we easily read java

 

Answer by Rajnan
Submitted on 2/2/2006
Rating: Not yet rated Rate this answer: Vote
As par as i concern the major difference between C and C++ is: C is a Procedural Programming Language where as C++ is a Object Oriented Programming Language.

 

Answer by vidya
Submitted on 2/2/2006
Rating: Not yet rated Rate this answer: Vote
C++ is the advance of c.It has some extra features. OOPs concept is in c++. Reusability is one of the advantage of c++.

 

Answer by Katiyar Jeevan Jyoti
Submitted on 2/8/2006
Rating: Not yet rated Rate this answer: Vote
Diff. b/w structured, Object Oriented and Visual Programming Languages.

This is a copy n paste of my earlier post that was a reply to a question about the difference between C and C++ and also about Visual C++ or windows programming. Its not exactly a tutorial but some information on C, C++ and Visual C++ that could be valuable for newbies learning these languages. Comments would be appretiated. So here it goes:
C is a Structured programming language. While C++ is an Object-Oriented Language. You can do a lot of stuff in C++ as compared to C.

Structured programming language i.e. C uses modules and functions that perform specific tasks like printing text, performing calculations etc. Functions make it easy for the programmer to divide his programs into a no. of tasks, thus making it easier to program. It uses the concept of divide and conquer. Functions can be either provided by the manufacturer of the compiler (pre-defined functions) or could be made by you (user-defined functions).

You can say that C is a go to less programming as it seldom uses go to statements. Most of the operations in C are done using the following constructs: Sequence, Selection and Repetition. Sequence is a step by step execution of program statements, Selection is the use of conditional execution like the well-known if statement (or functions in C) and Repetition is the repetition of a group of statements like in While statement and For statements.

Object-oriented programming languages (like C++) use the concept of re-usability of software or program components. You don’t have to re-invent the wheel. It uses the concept of information hiding, inheritance and polymorphism.

Like in C, C++ mostly uses pre-defined functions. It uses classes to hold data and functions. Data are states of the classes and functions are behaviors of the classes. Functions present in a class manipulate its data. Objects are instances (or implementations) of classes.

Classes communicate with one another so they provide that data to other classes that is necessary and hide the rest of the info. It is much like driving a car without knowing its internal working.

Inheritance allows one class to inherit some properties like data and functions from other classes. The class that inherits is called sub-class and its parent class (from which other classes inherit) is called the super class.

Polymorphism is one interface but many implementations. You can do a lot of stuff by giving one command. I think that’s all you need to know about polymorphism at this moment.

For programming in Windows you will have to use Visual C++. However you will need to learn C++ to use VC++. In MS-DOS and LINUX based programming the C++ program calls the operating system to get the user input and in Windows based programming the OS i.e. Windows issues messages whenever a user inputs something e.g. mouse clicks and button press etc for all of these special messages are sent to the C++ program. The messages sent by Windows are mapped in the C++ programs to perform a specific task using a the data received from the OS.

I hope that this helps. If you have any doubts then don’t hesitate to ask.

 

Answer by tedzero
Submitted on 2/8/2006
Rating: Not yet rated Rate this answer: Vote
everything is C.. a method called bootstraping is used to make anything from C.. (Something like.. C++ compiler is made from C.. and C compiler!!.. is made from.. maybe ASM.. its like I invent wheel.. and you make a bycycle.. :). )

Anyway.. C++ is an C extension.. But with many new programing constructs. And much much more robust.. and easier than C.. if you really know the benifits of C++..

Look for Design Patterns.. C is a very primitive language.. you can do anything and every thing in it.. Completly an UNMANAGED code.

 

Answer by kalai
Submitted on 2/8/2006
Rating: Not yet rated Rate this answer: Vote
c is advanced version in c++.
c++ is main think about of oops concept
it is more advantage of programmers.

 

Answer by gummi_falcon
Submitted on 2/9/2006
Rating: Not yet rated Rate this answer: Vote
With more and more emphasis being put on cross-platform environments, we are able to re-evaluate how a language fits into the big picture. Depending on the granularity, control, speed, or efficiency you need to write a program you would use a different language. Larger data management programs may be written entirely in Java. However, that same project with a few graphic demonstrations may requires pieces of the program be written in a language with closer access to memory and processes, like C++ or C. More "advanced" languages may come along to logically map code flow, at a cost of performance. As our logical data structures get more complex, we are able to grow as programmers and thinkers. One of the main concepts of OOP is encapsulation--to take complex functions and thinking of them as a single unit. The more complex our single logical units become, the more advanced our code can become. So, take it in stride and stick to what you want. Just remember, you always have the option of writing assembly.

 

Answer by Rao (UK)
Submitted on 2/10/2006
Rating: Not yet rated Rate this answer: Vote
Please note that only major differences between C and C++ are asked and it will not help others, by giving personalised answers on which one is better and which is not. Please only lise the differences.

 

Answer by rakesh
Submitted on 2/11/2006
Rating: Not yet rated Rate this answer: Vote
i think c is easy to understand.if one want to be efficient in programming.he must learn C

 

Answer by waqas ahmed malik(air university)
Submitted on 2/14/2006
Rating: Not yet rated Rate this answer: Vote
i think that c++ is very useful language.it is very easy to understand.i think that this is one the easiest laguage in the world.those who are saying that this is difficult these people dont know the quality of language.especially indians are the third class nation the world they dont have adequates,so what they have do with c++.so i am in favour of c++  

 

Answer by AMIT KISHORE
Submitted on 2/16/2006
Rating: Not yet rated Rate this answer: Vote
These are the differences between c and c++
->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.
->C still is the best choice for code that has to be fast while still being reasonably readable and portable, eg. device drivers.
->C++ on the other hand is mainly used in large projects of millions of lines of code, where C code would become unmaintainable.This is mainly due to the possibility to reuse existing code by exploiting the OOP concepts of polymorphism and inheritance.
->C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has a lot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required

 

Answer by Lets Rock
Submitted on 2/16/2006
Rating: Not yet rated Rate this answer: Vote
C is procedural oriented language, where as C++ is object oriented language.
C programs will save compile time than C++ programs.
Data security and Re-usability of code is more in C++ than in C.

 

Answer by Roshan Jhalani
Submitted on 2/19/2006
Rating: Not yet rated Rate this answer: Vote
basically c++ is an object oriented language and c is an procedural based language. since c++ is extended version of c so it must have lots of difference between them.
C is completely based on function methodology while  c++ based on function and oops concept. it is not a pure object oriented language.
C++ has features that gives more security over c language.
We can say c is a low level language and c++ is a high level language.
c is weakly type checking language(like array definition) but c++ is strong(strictly) type checking language.
regarding key-terms c++ has many more features over c.

 

Answer by dhiren
Submitted on 2/19/2006
Rating: Not yet rated Rate this answer: Vote
difference bet c and c++ is the programming aspect . c++ uses the programming issue considering the real life objects having a state (data member in a class) and behaviour(functions to access the data member), so it is applicable to real life whereas c is just a structural language reluctant to changing environment in software market.

 

Answer by UMER FAROOQ
Submitted on 2/21/2006
Rating: Not yet rated Rate this answer: Vote
NO DIFFERENCE IN C AND C++

 

Answer by karthik
Submitted on 2/22/2006
Rating: Not yet rated Rate this answer: Vote
I think C++ is better than C. Because C++ has OOPs concepts which C doesn't have. C++ is an extention of C. While programming in Java OOPs concepts are important. That's why C++ has been created to overcome C. Many new languages may be created in forecoming years.At that time we will be in position to accept that one. So, we should appreciate new languages in the latest trend. This is what I like

 

Answer by po
Submitted on 2/23/2006
Rating: Not yet rated Rate this answer: Vote
c is only c++.do not worry.









 

Answer by viji
Submitted on 2/24/2006
Rating: Not yet rated Rate this answer: Vote
C++ has the oops concept. But this specilities is  not available in C.This is the  main difference between C and C++.

 

Answer by IT Professional
Submitted on 2/25/2006
Rating: Not yet rated Rate this answer: Vote
The difference lies in the perspective of the user. Anyone interested in moving across a circle to reach a point would like C ++, and anyone interested in moving across a shot straight line would like C, though they both land up at the same destination.

 

Answer by Raju.Balagam
Submitted on 3/1/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++ is that
1)C doesn't have class/object concept.
2)C++ provides Data abstraction,Data  encapsulation,Inheritance and Polymorphism.
3)C++ supports all C syntax.
4)In C passing value to function is call by value where as in C++ it's call by reference.

 

Answer by prasadrao
Submitted on 3/2/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between C & C++  is the OOPS technology, C++ is an object oriented programing language, using which one can program using the objects that are been created. C++ have the provision of inheritence, constructors whereas you will not find these in C.
Still C is better then C++ because of its  easy and understable syntax !!!

 

Answer by sys
Submitted on 3/8/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.c++ is an advanced version of c which was made in 1980's in the same lab where c was also made and hence most of the features of c are contained in c++ also,but with a little difference in some of the syntaxes to make c++ more advanced Language.Besides these there is not much difference between them

 

Answer by venu
Submitted on 3/9/2006
Rating: Not yet rated Rate this answer: Vote
There is a lot of difference between C and C++.
It gives much flexibility in managing programs.
C++ is dynamic memory allocation whereas C it is not there.
In C++,the concept of data hiding plays very important  role,which gives privacy to the program.In this we have access specifiers private ,public,private. Whereas  in C we dont find privacy to our programs.
C++ helps in reuisability of operators,functions and constructors but in C we dont have thc concept of reusability.

 

Answer by deep_swami2003@yahoo.com
Submitted on 3/9/2006
Rating: Not yet rated Rate this answer: Vote
i think c is differ by c++ in that manner
in c any varible is can use  by any function but in oops object is behave like critical data .          

 

Answer by romeo
Submitted on 3/11/2006
Rating: Not yet rated Rate this answer: Vote
I think the main difference is ++ appeared in the second.
cool? .have a break

 

Answer by Hemal
Submitted on 3/14/2006
Rating: Not yet rated Rate this answer: Vote
Although the languages share common syntax they are very different in nature. C is a procedural language. When approaching a programming challenge the general method of solution is to break the task into successively smaller subtasks. This is known as top-down design. C++ is an object-oriented language. To solve a problem with C++ the first step is to design classes that are abstractions of physical objects. These classes contain both the state of the object, its members, and the capabilities of the object, its methods. After the classes are designed, a program is written that uses these classes to solve the task at hand.

 

Answer by sattanari
Submitted on 3/16/2006
Rating: Not yet rated Rate this answer: Vote
according to my concern c++ is the best rather than c language because in c++ we can maintan the code eassilly rather than c .in c if the code is increased then the maintaing is very difficult and c++ has the oop concept

 

Answer by Vidya
Submitted on 3/17/2006
Rating: Not yet rated Rate this answer: Vote
C++ is an object oriented programming where as   C is procedure oriented.     C++ provides us with lots of flexibility compared to C. For example,. In C the variables should be declared soon after '{'. But in C++ the variables can be declared anywhere b/w '{} '. There are many additional features in C++ like polymorphism,inheritance,encapsulation etc., Thus for a beginner C++ is harder to understand than C.

 

Answer by anitha B.Tech,joyce B.Tech
Submitted on 3/24/2006
Rating: Not yet rated Rate this answer: Vote
c++ is a extended version of c.C++ is OOPS(Object Oriented  Programing concept

 

Answer by Handsome
Submitted on 3/30/2006
Rating: Not yet rated Rate this answer: Vote
1. The main difference between c & C++ s that c++ have OOPS Concept but C do not.
2. In C++ there s no pointer Concept but C has.

 

Answer by Ahk programming master
Submitted on 4/4/2006
Rating: Not yet rated Rate this answer: Vote
I still don't know anything at all about C or C++.

 

Answer by kurnal
Submitted on 4/15/2006
Rating: Not yet rated Rate this answer: Vote
i will like to define difference with the example of two organisation.1st organisation calls as per the need.this is concept of c.the other organisation is one which has suborganisation all working individually and more organised.having property of inheritance,polymmorphism and all property of oops.this is implementing c++.c is ok with small programs but you require c++ for organising big application as well as system program

 

Answer by anzilkasim,karamana
Submitted on 4/16/2006
Rating: Not yet rated Rate this answer: Vote
concept of C++ is rated much higher than C.  Main difference between C and C++ is that C is a procedure oriented language while C++ is object oriented one. that means using the concept class in c++ object oriented features like data hiding, encapsulation, data abstraction, inheritance, polymorphism is implemented.

Polymorphism means same name having different forms,  In C++, we can write more than one function with same name but it should differ in arguments.

Inheritance means the ability to extend the class features without disturbing the base class.

Data hiding means using the access modifier private, we can hide the data members from external world

Encapsulation means wrapping up to data members and member functions into a single unit, that is also implemented by class.  data members means the variable that we are declaring inside a class and member functions means the functions declared inside the class.

Data abstraction means we use the member functions with out knowing the complexity of the function, ie user use it as simple as it is.

thats all guys enjoy reading, enjoy writing and enjoy  browsing

Anzil. K
BSc. Comp. PGDCA BTech Mechanical Engg.

 

Answer by rajesh kanna
Submitted on 4/20/2006
Rating: Not yet rated Rate this answer: Vote
C++ is somewhat different from C. Inheritance,polymorphism,encapsulation,classes,objects,message passing are the important concepts in C++. Data hiding is one of the best effort in C++.In C, we cannot use classes and objects. We cannot hide the data in C.

 

Answer by priya
Submitted on 4/21/2006
Rating: Not yet rated Rate this answer: Vote
i think c++ is a robust language

 

Answer by kp
Submitted on 4/21/2006
Rating: Not yet rated Rate this answer: Vote
c++ is platform dependent and java is platform independent.

 

Answer by Keerthi
Submitted on 4/23/2006
Rating: Not yet rated Rate this answer: Vote
C++ can be stated as" C with classes".

 

Answer by nav
Submitted on 4/25/2006
Rating: Not yet rated Rate this answer: Vote
one in c type typesafe checking in not done.but where as in c++ type checking in done during likage.

compile time of c programs is more when compare  to c++


 

Answer by Dharmendra Patri
Submitted on 4/30/2006
Rating: Not yet rated Rate this answer: Vote
C++ is derived from C. The main difference between C & C++ is C++ supports OOPS concept where as C doesn't. We have constructors & destructors in C++ which allows us for better memory management then C. Function overloading & operator overloading also r some main advantages of C++. If i have done any mistake then forgive me for information regarding Java & VB.NET mail me at babun_2d4@yahoo.com  

 

Answer by ranjani
Submitted on 5/11/2006
Rating: Not yet rated Rate this answer: Vote
in c there is no inheritance and polymorphism.,c++ supports them and reusability property,because of this a lot of time needed to write coding gets reduced.money is saved.c++  contains data hiding ,abstraction,and encapsulation property which is not present in the case of c.,so c++ even it has emerged from c but it is far better than c

 

Answer by Raja
Submitted on 5/13/2006
Rating: Not yet rated Rate this answer: Vote
The major diffrence between c & c++ is, c is a procedural language and c++ is a object oriented programming language concept.
in c language programs is divided into various modules or procedure.
in c there are nothing about the oop'sconcept ie Encapsulation, abstraction.

 

Answer by Nagaraj  Malashetty
Submitted on 5/30/2006
Rating: Not yet rated Rate this answer: Vote
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.


Type checking for example is much more rigid in C++ than it is in C,
so many a program that compiles just fine under a C compiler will
result in many warnings and errors under a C++ compiler.


The main difference between C & C++  is the OOPS technology,
C++ is an object oriented programing language, using which
one can program using the objects that are been created.
C++ have the provision of inheritence, constructors whereas
you will not find these in C.
Still C is better then C++ because of its  easy and understable syntax !!!


 

Answer by ankita nograhiya
Submitted on 6/2/2006
Rating: Not yet rated Rate this answer: Vote
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.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

 

Answer by ankita nograhiya
Submitted on 6/4/2006
Rating: Not yet rated Rate this answer: Vote
++ 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.

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.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

 

Answer by hari
Submitted on 6/6/2006
Rating: Not yet rated Rate this answer: Vote
C- procedural oriented..

C++ - object Oriented..


 

Answer by Kerri
Submitted on 6/7/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++. Other than this C++ can have some advanced
concepts that are Exception handling,Templates.There is implicit type conversion in C which was not in C++.


By
Kerri

 

Answer by lucky
Submitted on 6/8/2006
Rating: Not yet rated Rate this answer: Vote
THE MAIN DIFFERENCE BETWEEN C AND C++
IS '++' WHICH INDICATES THAT SOME THING ADDITIONAL THINGS SUCH AS OOPS TECHNOLOGY
HAS BEEN ADDED TO IT TO MAKE IT EFFICIENT.
REMAINING ELSE IT IS SAME

 

Answer by suraj
Submitted on 6/10/2006
Rating: Not yet rated Rate this answer: Vote
i think c is now outdated.now other programing language are coming and providing us to many facilitys.like c++ ,java,vb.net etc.i would like to work in c++. because this more flaxible then c.

 

Answer by gnana
Submitted on 6/16/2006
Rating: Not yet rated Rate this answer: Vote
C was the C++ predecessor. As it's name implies, allot 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 OOPS (Object Oriented Programming) concept.

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.

Although it is possible to implement anything  which C++ could implement in C, C++ aids to standardized a way in which objects are created and managed, whereas the C programmer who implements the same system has aloft of liberty on how to actually implement the internals, and style among programmers will vary Alon on the design choices made.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has Lot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

 

Answer by raju
Submitted on 6/16/2006
Rating: Not yet rated Rate this answer: Vote
As children, we knew very few English words, and expressing ourselves was difficult. As our vocabulary grew, our expressiveness grew as well. C++ still provides most of the features of C (and I am hard pressed to remember the ones it does not include), while adding many more features. Greater expressiveness with better flow of thought and ideas is the result.

 

Answer by siva priya
Submitted on 6/20/2006
Rating: Not yet rated Rate this answer: Vote
1. The main difference is C is PROCEDURE ORIENTED LANGUAGE and C++ is OBJECT ORIENTED LANGUAGE.
2. C++ is superset of C.
3. C follows Top_Down Approach and C++ Bottom_Down Approach.

 

Answer by gparamasivam
Submitted on 6/21/2006
Rating: Not yet rated Rate this answer: Vote
I Think C++ is better than c because it support multithreading and exception handling and also the some of  basic concepts so the c++ is more advantage compare to c.

 

Answer by kutty
Submitted on 6/22/2006
Rating: Not yet rated Rate this answer: Vote
I have a question based on Bio Computer response.
I did not understand the point "3) in the c CAN NOT use the string type but you can declear  it as an array "

To me, Char data type is available in both C and C++.


 

Answer by Bhande Nitin S.
Submitted on 6/24/2006
Rating: Not yet rated Rate this answer: Vote
C is procedure oriented language and the c++ is the Object oriented language.In c++ the gap between the problem space and the solution space is less as the objects are mapped as it is in the solution space as they are in the problem space .this gap is more in c.

 

Answer by Santos Inamdar
Submitted on 6/26/2006
Rating: Not yet rated Rate this answer: Vote
C++ is c + OOPs Concept.
As i don't think there is much difference between c and c++. U cal implement the features  like polymorphism...in c. But The it is much more complicated.

C is internel linkage where as C++ is external linkage.

If C code is very large, it will be very difficuilt to maintain the code. But The bugs can be easily traced in c++.

const in c requires a storage, but in c++ it will not allocate storage.

there is no reference concept in c

 

Answer by Naiju
Submitted on 6/26/2006
Rating: Not yet rated Rate this answer: Vote
C++ can be object oriented/procedural
C++ has more library functions like STL
C++ file handling routines are more powerful
C++ has namespace concept

 

Answer by jalaja
Submitted on 6/28/2006
Rating: Not yet rated Rate this answer: Vote
C is top down approach whereas c++ is bottom up approach

 

Answer by Kavi chandrika
Submitted on 6/30/2006
Rating: Not yet rated Rate this answer: Vote
C++ is the improved version of C. C++'s new features, such as simplified memory allocation/deallocation, help programmers make C++ programs more readable, more maintainable and less bug-prone than comparable C programs. Stronger Type Checking - the use of classes, inheritance & automatic type
conversions mostly eliminates the need for the abominable void* of C.



 

Answer by yashintha
Submitted on 7/2/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++ is the OOPS concept,especially the concept of inheritence.In C functions are implemented through data structures and algorithm,whereas c++ uses classes and objects.Also,the concept of abstraction is applied in the functional level in C.Whereas abstraction is applied on object level in C++.The data being operated upon and the algorithm are separable in C.In C++, the data and algorithm cannot be separated!!!

 

Answer by NAVSHIKHA NAHAR
Submitted on 7/4/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between C & C++ is that c is a "TOP DOWN PROGRAMMING LANGUAGE" while C++ IS A "BOTTOM-UP PROGRAMMING LANGUAGE"   (don't u think this is short & sweet)

 

Answer by sankar_y2j
Submitted on 7/6/2006
Rating: Not yet rated Rate this answer: Vote
c++ can identify the  number,strings automatically like cout<<a;
but in c , we have to mention  the "%d" ,"%s"

 

Answer by sindhu
Submitted on 7/6/2006
Rating: Not yet rated Rate this answer: Vote
c++ is better than c.because in c we give input within the module but in c++ we give at anywhere.

 

Answer by vijiin
Submitted on 7/8/2006
Rating: Not yet rated Rate this answer: Vote
The major difference between c and c++ is Reusability which is mainly support by c++ not in c. this point has not include here.
so we can discuss this feature in c++.

 

Answer by ALan
Submitted on 7/16/2006
Rating: Not yet rated Rate this answer: Vote
In c, default return type for a function is a int type.
where as in C++, no default type is assumed, one has to mention a return type.
Thanks

 

Answer by vikram.a_annamalai university
Submitted on 7/20/2006
Rating: Not yet rated Rate this answer: Vote
i am not sure but my idea is c++ is more intrested than c because my staff are all inteligent in c++ only

 

Answer by m_shraddha30@yahoo.co.in
Submitted on 7/21/2006
Rating: Not yet rated Rate this answer: Vote
The basic features of C++ i.e encapsulation,data abstraction, inheritence and polymorphism are itself the differences between C and C++.

 

Answer by sukhpal singh bhadauriya
Submitted on 7/22/2006
Rating: Not yet rated Rate this answer: Vote
as fore as the difference is concern between c and c++ .i think first we can't say that c++ is next version of c .but c++ is developed with the help of c in same laboratory
1. c is procedure oriented language while  
   c++ is being of follow rules of oops so its a object oriented programming language but not pure object oriented programming language because it doesn't follow all features of oops like 'persistence' this feature not follow by c++.  

 

Answer by vandana
Submitted on 7/22/2006
Rating: Not yet rated Rate this answer: Vote
A few major C++ features not available in C:
- Classes
- Templates
- Exception handling
- Function overloading
- Operator overloading
- Namespaces
- Standard library for templated collections, strings, common algorithms,
etc.

And a few minor ones:
- bool type
- Reference types
- Somewhat stricter type checking than C
- new/delete instead of malloc()/free()
- New syntax for declaring struct types

C++ is obviously more complex than C, but many of the added features are
designed to make life easier (string handling is a good example). Some
programmers like to use C++ as "a better C". Others think that the OO
features in C++ makes it more suitable for larger projects than C. Still
others prefer the relative simplicity and sparsity of C.

To explain the difference by enumerating features just gives part of the
picture. Another way to say it is that C++ is a multi-paradigm language,
with support for procedural, object-oriented and generic programming, while
C supports procedural programming only (it's possible to write OO code with
C, but it's not pretty). If this is a good or a bad thing is obviously a
matter of opinion. IMHO the standard library alone makes C++ worth the extra
learning effort.


 

Answer by raman saini
Submitted on 7/23/2006
Rating: Not yet rated Rate this answer: Vote
C++ is more easier because of concept of oops

 

Answer by sesha
Submitted on 7/25/2006
Rating: Not yet rated Rate this answer: Vote
i like c++ very much because i works on oops used to organize the program by creating classes and objects.

 

Answer by Suman Bhatnagar
Submitted on 7/28/2006
Rating: Not yet rated Rate this answer: Vote
C is a procedural language which laid emphasis on functions whereas C++ is object orientedwhich laid emphasis on data . In C data is global ie. any function can transform data from one form to another. In C++ data is hidden ie the data and functions that operate on that data are bind together in a object. C follows top down approach whereas C++ follows bottom up approach.
The Concepts of Inheritance and constructors
are also present in C++.

 

Answer by hjshhyy
Submitted on 7/28/2006
Rating: Not yet rated Rate this answer: Vote
O, very fun here. Wadded jacket own the shadow of jacket, which is better? Could say you only like wadded jacket or jacket?

 

Answer by satyasangeetha
Submitted on 8/2/2006
Rating: Not yet rated Rate this answer: Vote
1.c is procedural where as c++ is the object oriented is the maid difference between c and c++
2. There is the possibility of reusability in c++ where it is not possible in c

 

Answer by santosh
Submitted on 8/3/2006
Rating: Not yet rated Rate this answer: Vote
c++ is c's Superset,where most of the futures of c are included in c++.in c we have no encapsulation,classes,inheritance.In c no chance to secure the data,but in c++ we have,using access specifiers(private,pub,protect).
In Simple c++ is "C with Classes".

 

Answer by anu
Submitted on 8/5/2006
Rating: Not yet rated Rate this answer: Vote
c is better than c++.c is procedure oriented where us c++ is object oriented.

oops concept are availiable in c++ where as it is not present in c


 

Answer by bhavesh
Submitted on 8/5/2006
Rating: Not yet rated Rate this answer: Vote
major diffrence is classes and other are oprator over loading and data over loading

 

Answer by shreya
Submitted on 8/16/2006
Rating: Not yet rated Rate this answer: Vote
well c is a procedure language where  as c++ is a object oriented langauge.
in c we approcah top to bottom and in c++ we have down to top approach.c++ contain the properties of oop that is inheritance,encapsulation and polymorphism where as c does not have.c++ is more real to real world than c.

 

Answer by deepika joshi,rishikesh
Submitted on 8/23/2006
Rating: Not yet rated Rate this answer: Vote
I think for the persons who had read c first and then they are learning c++,c++is not different from c.But actually there is all difference in the concepts of OOPThe logics are same,the concepts are same ,the methods of accessing data is almost same but till there is wide difference in some syntexes and some keywords.

                        deepika joshi
                        rishikesh

 

Answer by devesh_tiwari
Submitted on 8/23/2006
Rating: Not yet rated Rate this answer: Vote
C++ is   extension of c, In c we use printf & scanf (that is the formatted input output function),but in c++ we use cout and cin (which is unfomatted function,if a program written in c it always return the integer there is no void key word but in c++ we use void so main will not return any value,c is not support the concept of oop's

 

Answer by pratheesh
Submitted on 8/24/2006
Rating: Not yet rated Rate this answer: Vote
The major different of c is class oriented.But in the case of c++ is object oriented

 

Answer by alok
Submitted on 8/24/2006
Rating: Not yet rated Rate this answer: Vote
c++ is much better then c because c++have some extra feature just like as oprater overlodding ,viertual function ,mutable ,namespace etc.
c++ is object oriented base which have most importent property like data abstraction,encapsulatio,modularity,inheritence  for the purpose of security .
after c++ so many object oriented base language
in market like java ,vb.net etc.
so extra feature of c++ make reliable and give more effiency & effectiveness for enviournment.  

 

Answer by rajan
Submitted on 8/25/2006
Rating: Not yet rated Rate this answer: Vote
sare hi gallet

 

Answer by oh- its me
Submitted on 8/25/2006
Rating: Not yet rated Rate this answer: Vote
kuch to baat hai

 

Answer by Praveen Kumar
Submitted on 8/27/2006
Rating: Not yet rated Rate this answer: Vote
I need a programm that is able to executes in c but not in c++.Can anybody help me out?

 

Answer by Rohini
Submitted on 8/28/2006
Rating: Not yet rated Rate this answer: Vote
Differences:
1. In c, structures do not contain functions, whereas in c++ u can.
2. c++ is c with OOPS concept. c++ comes up with classes, constructors/destructors etc.
3. strict type checking is done in c++, not in c.
4. anonymous unions in c++
5. function overloading in c++.
6. new and delete operators in c++, malloc/calloc/realloc and free in c.
7. namespaces in c++.
8. operator overloading in c++.
9. templates functions and classes in c++.

 

Answer by joyce de castro
Submitted on 8/28/2006
Rating: Not yet rated Rate this answer: Vote
i think c++ is more easier than in c, as i observe c is not a user friendly... They have so many differences but C++ plus was derived from C. C is the foundation of C++ eventhough that C++ is more advanced than in C still C is the foundation of C++. They also have many differences in syntaxes

 

Answer by Bjarne Stroustrup
Submitted on 8/30/2006
Rating: Not yet rated Rate this answer: Vote
C++ is a direct descendant of C that retains almost all of C as a subset. C++ provides stronger type checking than C and directly supports a wider range of programming styles than C. C++ is "a better C" in the sense that it supports the styles of programming done using C with better type checking and more notational support (without loss of efficiency). In the same sense, ANSI C is a better C than K&R C. In addition, C++ supports data abstraction, object-oriented programming, and generic programming (see The C++ Programming Language (3rd Edition)"; Appendix B discussing compatibility issues is available for downloading).

I have never seen a program that could be expressed better in C than in C++ (and I don't think such a program could exist - every construct in C has an obvious C++ equivalent). However, there still exist a few environments where the support for C++ is so weak that there is an advantage to using C instead

 

Answer by amritpal singh
Submitted on 9/1/2006
Rating: Not yet rated Rate this answer: Vote
hello, according to me c++ is far better than c. because in  c++ we have many new features as we all know, opp concept,inheritance and all that,but if we talk about c it is also better for the new age learner,and also very good for small projects which require less time and space,and more as with the advent of new era our technology is advacing, we people are going to introduced with new things,it give'sbetter exposure,to work with the new.At last i only want to say that we can make comparisons at the developed application,the thing will be done if we develope the new application,after altering the old one like from c, some body had developed c++.

thanks.

 

Answer by Natraj
Submitted on 9/1/2006
Rating: Not yet rated Rate this answer: Vote
My point of view the major difference between the C and the C++ the "OOP" concepts.We can say  C++ as "OOPs version C".Still the C programmers have some choices Bcz actually the structure concepts in C become with Classes with some added features.The other differences are based on the Class concepts.We can create friendly functions in C++(for sharing same functions with different classes),Virtual functions,additional datatype "String" for hanling Text unlike we handle the text in C as array of charactes and some more

 

Answer by voice of difference
Submitted on 9/2/2006
Rating: Not yet rated Rate this answer: Vote
None forces you to use everything a programming language has to offer (unless your pride easily gets hurt when other C++ programmers see your "C++" code).

However, even if you program in C, you can reap the benefits of C++ other then OOP: i.e. templates and inlined functions were some things "I would kill for" in C. You can think of them as of very, very advanced preprocessor features.

If none is pushing you to learn everything at once (i.e. for exam or job interview), keep on programming as you were and eventually it will become clear to you when and where some language features would fit just right and help you ease your tasks. Whenever you get that feeling "Oh, no, now I have to type all this once again" or "Now I'll have to copy and paste this several pages, and then manually edit certain lines", or any other situation where you have the feeling you *almost* already did something previously, but now has to do it again a little differently, you should look up in a C++ book if there is a solution for your problem. In most cases there is. C++ was created by very experienced C programmer who probably had same problems you may have at present time.

enjoy programming!

 

Answer by Sonia
Submitted on 9/3/2006
Rating: Not yet rated Rate this answer: Vote
Main difference between c and c++ is OOPS concepts.c++ is object oriented language but c is procedure programming language.but still,c is much better than c++.because what we can do in c , we cant do in c++,as like we can make a program like switch on and off of a fan of a room, but we cant make this real and electric base program in c++.so i prefer c language more.

 

Answer by Saurabh Khatri
Submitted on 9/3/2006
Rating: Not yet rated Rate this answer: Vote
The difference between C and C++ are enormous.
first C is modular programing language where C++ is OOPs
there are three paradigm of OOPs
1) Encapsulation
2) Inheritence
3) polymorphism

The concept of class and object comes into picture when talking of any OOPs(C++) language. The classes binds the data members and member funtion together. And everyting in OOPs is considered to be a real world entity. This makes C++ more close to real world.

now lets talk of diffences appart from above said:
1) C doesnot support error handling
2) No generic Classes
3) C is just a subset of C++ to have backword compatiblity.
4) No nested function definitions (although some compilers provide them, for example, GCC)
5) In C++ Support for one-line comments beginning with //
6) Run time Polymorphism
7) Operator and function Overloading
8) Storage operators new and delete.
9) Inlining added in C++
10) Stream objects for I/O.
11) There are no reference types ( i.e. types with & ) in C.
Pointers are generally used instead of references.


The C++ programming language was derived from C and is Bjarne Stroustrup's answer to adding object-oriented functionality with C-like syntax. C++ adds greater typing strength, scoping and other tools useful in object-oriented programming and permits generic programming via templates.

Languages was originally implemented as preprocessors -- source code was translated into C, and then compiled with a C compiler.
But all appart this C code is more efficient as there is no ruun time polymorphism.

 

Answer by upender
Submitted on 9/6/2006
Rating: Not yet rated Rate this answer: Vote
form the language of c some more concepts are add into c++


There are a few semantic differences between C and C++ in the way they interpret certain language constructs. These differences may not result in a compiler diagnostic, so it is important to pay attention to them when porting code from C to C++ and vice versa. For example, in C, the size of an enumeration equals the sizeof of an int, whereas in C++, the size of an enumeration doesn't have to be an int. Also, in C, the result of applying the operator sizeof to a character constant, for example, sizeof('c'); equals sizeof(int). In C++, on the other hand, the expression sizeof('c'); returns sizeof(char).

 

Answer by eaxz
Submitted on 9/11/2006
Rating: Not yet rated Rate this answer: Vote
fcadawfevdasvdedgvfn b jhbhabcsucbhcbbxc ysbvc shagiujhbgghygwqcergyuligbyhujsgbzlgfyligbhcxvkjvhvjhkhbaUYq

 

Answer by hhhhhhhhhhhaggggggggg
Submitted on 9/12/2006
Rating: Not yet rated Rate this answer: Vote
poo is good

 

Answer by naitik
Submitted on 9/15/2006
Rating: Not yet rated Rate this answer: Vote
i am bignner to learning c++. i want the best author book . that i learnt max. knowledge from it.plz give the name of the author, publisher and price(indian rupee). and book name.

 

Answer by Joey
Submitted on 9/15/2006
Rating: Not yet rated Rate this answer: Vote
C and C++ sucks

 

Answer by Ananth
Submitted on 9/23/2006
Rating: Not yet rated Rate this answer: Vote
C is a dos based language.
c++ is a windows based language.
in c initially we don't have the method to pass the argument.  After the development of c++, we adopt the feature frim c++

 

Answer by Sekharreddy
Submitted on 9/28/2006
Rating: Not yet rated Rate this answer: Vote

Yes C was the C++ predecessor , and c++ have some benfits those are, c++ supports OOP Concepts Like Polymorphism,Classes,Operator overloading and inheritance,and Dynamic Bynding.

C++ provides Security to the data and functions. We can create instances using classes , c++ provides security in the form of access specifiers

 

Answer by kasthuri
Submitted on 9/29/2006
Rating: Not yet rated Rate this answer: Vote
c++ is better when compare to c, because c++ has a capacity of reusing the program, that is c++ is a re usability as well as it contains more advantage than c. it contains many different types of functions like virtual,friend ,template etc.

 

Answer by sathishkumar.g
Submitted on 10/4/2006
Rating: Not yet rated Rate this answer: Vote
c++ uses a OOP'Sconcept but doesn't in c&
c is top down approach, c++ is a bottom up approach

 

Answer by ravish
Submitted on 10/8/2006
Rating: Not yet rated Rate this answer: Vote
c is a procedural programming while c++ is based on the OOPs which allows the creation of object.c is a subset of c++.in c we use the plane text name format while in c++ we use mangle name format.that's the difference why c program are not run in c++.

 

Answer by ravish
Submitted on 10/8/2006
Rating: Not yet rated Rate this answer: Vote
c is a procedural programming while c++ is based on the Oops which allows the creation of object.c is a subset of c++.in c we use the plane text name format while in c++ we use mangle name format.that's the difference why c program are not run in c++.

 

Answer by vikrant
Submitted on 10/8/2006
Rating: Not yet rated Rate this answer: Vote
i think c is a graet langauge because c++ is only an extension of c. If c was not there then it was not possible to make c++. So comparing c and c++ does not make any sence.

 

Answer by Meltdown
Submitted on 10/10/2006
Rating: Not yet rated Rate this answer: Vote
I know that many programs such as microsoft visual studio which is one of the compilers of c++ or virus/anti-virus programs or even linux and mozzilla firefox is written in c.is it true? and one can program those(for example writing a mozzilla or linux extension)by using c++?

 

Answer by RKK
Submitted on 10/11/2006
Rating: Not yet rated Rate this answer: Vote
Also every valid C program (as said by C++ Creator) is a valid C++ program. But a C program with variable names such as new, private, protected, public can't be a valid C++ program.
Anything that can be done by C++ is doable in C and to a certain limit vice versa is true. I could not imagine a operating system kernel in C++. UNIX kernel's are in C but not in C++, since C code provides lean and mean code than C++.
On speed I would really say on the algorithm that a code follows. Such as a quicksort algorithm in C++ can beat a insertionsort that is written in C, but then quicksort implemented in C & C++ may yeild same result almost every time you run the program. I would say both the beasts C & C++ are required such as two eyes for a human being are so important to him/her. Use the tool C/C++ as per the needs & for the operating platform you deal with.

 

Answer by JYOTI KOTI
Submitted on 10/11/2006
Rating: Not yet rated Rate this answer: Vote
1)C is procedure-oriented language,c++ is object-oriented language.
2)c developed by Dennis Ritche in 1972,c++ by Bjarne Stroustrup in the early 1980s.
3)It supports multiline comment statement(ie.,/*...*/).c++It supports both a single line comment statement(i.e//)and multiline comment.
4)C is quite rigid as far as declaration of variable is concerned,i.e,all variables must be declared before the first excutable statement.C++ is flexible as far as declaration of variable is concerned.i.e,variables are declared at any point where they are required.
5)The keywords new and delete are not available.In c++ are available

 

Answer by shantana
Submitted on 10/15/2006
Rating: Not yet rated Rate this answer: Vote
C++ is much more secured than C.
C++ is having a bottom-to-top approach whereas C is having top-to-bottom approach.
C++ is creation of classes which has all the features of OOPS.
C++ variables can be declared anywhere in the program but before or at the time of its usage.

 

Answer by preddyp
Submitted on 10/22/2006
Rating: Not yet rated Rate this answer: Vote
C++ provides more data security using classes & objects.

 

Answer by Programmer
Submitted on 10/29/2006
Rating: Not yet rated Rate this answer: Vote
Well...C++ , which is an Oopsconcept is more easier than C pointers....
C++ is structural...

 

Answer by satheesh
Submitted on 10/31/2006
Rating: Not yet rated Rate this answer: Vote
c++ differs in certain things such as it contains classes, function overloading, polymorphism, inheritance

 

Answer by Rohith
Submitted on 11/1/2006
Rating: Not yet rated Rate this answer: Vote
I have no Idea..

 

Answer by Jimo
Submitted on 11/5/2006
Rating: Not yet rated Rate this answer: Vote
The 'C' is only one character,but 'C++' is three characters('++'), so I think C++ have more features than C, example, class,new

 

Answer by AJAY RAJDAN
Submitted on 11/14/2006
Rating: Not yet rated Rate this answer: Vote
C++ is basically an object oriented programming language in which we make objects and define as many classes as we want inheriting the functions of the object. Inheritence & Polymorphism are the two major property which makes C++ a better choice than C language. Also large programmes with millions of codes are easier to maintain in C++. Moreover all features of C is included in C++ but reverse is not true.

 

Answer by VG
Submitted on 11/22/2006
Rating: Not yet rated Rate this answer: Vote
C++ is better than C. because, of its OOPS concepts. With C++ as the base language the OOPS concept developed n new programming languages like Java where developed.
Syntax in C++ is complex compared to C. But once we get familiarised C++ is more easier

 

Answer by shanthi
Submitted on 11/23/2006
Rating: Not yet rated Rate this answer: Vote
C is a programming language, where it includes only the basic programming concepts, where the most powerful technology called 'Object oriented concepts' are introduced in c++.
C++ is an advanced version of C. If u know C++, there is no complexity to learn C.
I feel C++ will brings Ur imagination more in the programming world than C.

 

Answer by Abhishek Gupta
Submitted on 11/23/2006
Rating: Not yet rated Rate this answer: Vote
still searching

 

Answer by Anand Srivastava
Submitted on 12/1/2006
Rating: Not yet rated Rate this answer: Vote
i would like to say that c++ is the superset of c. And c++ provide Inheritances, class, Polymorphisms etc but c is not providing this future.

 

Answer by Dev
Submitted on 12/5/2006
Rating: Not yet rated Rate this answer: Vote
c++ is extension of c. c++ is super set of c.
The most important feature of C++ is that it is object oriented language,using which one can program using the objects that are been created. C++ have the provision of inheritance, constructors whereas you will not find these in C.
Still C is better then C++ because of its  easy and understandable syntax !!!

 

Answer by harishankar yadav
Submitted on 12/7/2006
Rating: Not yet rated Rate this answer: Vote
i think c++ is better than c. Because it is the mother of all the object oriented language. it had brought the new concept of Object Oriented Programming. and all the modern languages are now with object oriented feature.
i can remember this much only. sorry if my answer hearts anyone.

 

Answer by Aditya
Submitted on 12/12/2006
Rating: Not yet rated Rate this answer: Vote
Yaa i want to tell that c++ is nothing compared to c and why they made c++ and why software engineers are made to use this i do not know.If you want to use some oop language then you can use java or c# also.

 

Answer by SRILATHA
Submitted on 12/12/2006
Rating: Not yet rated Rate this answer: Vote
I prefer c++ since it is the most advanced concept of c.c++ is the superset of c.the new concept available in c++ is oops through which we can communicate through objects.the concepts like inheritance,polymorphism,
templates etc are more useful in efficient programming.the i/o statements are very easy than c and the code can be reduced in c++ than c

 

Answer by vinod
Submitted on 12/17/2006
Rating: Not yet rated Rate this answer: Vote
the major difference between C AND C++ is variable lenght arrays. these are developed in C99 not in C++.
C++ strong type checking but not C.

 

Answer by Preetha
Submitted on 12/18/2006
Rating: Not yet rated Rate this answer: Vote
Well....there are so many differences between C and C++,C is the foundation upon which C++ was built.
Some of the diff are
1.C is structured whreas C++ is object oriented
2.In C,the program is organised around its code whereas in C++, it is organised around data
3.In C,preprocessor directive is neccesary but it is eliminated in C++

 

Answer by salma
Submitted on 12/19/2006
Rating: Not yet rated Rate this answer: Vote
c++ is an advanced version of c.
C++ provides the feature of OOPs
In c++ variables can be declared at the time when they are in use,whereas in c its not possible.
If we does not return any value to the calling program,we have to write void keyword which is mandatory.but in c++ its not like that.
syntax difference.
object stream is not provided in c.
In c data is accessible to all parts of the program where as in c++ we have encapsulation feature.

 

Answer by sangeethapriya
Submitted on 12/23/2006
Rating: Not yet rated Rate this answer: Vote
In c++ we have concepts like encapsulation,inheritance,class,interface.



 

Answer by suchitra
Submitted on 12/24/2006
Rating: Not yet rated Rate this answer: Vote
Basically c is a structured programing language and c++ is a object oriented program.C++ has more advantages when comparing to c.In C  variables are declared in the program as global.so there is no security for the data. In c control was transferred via goto statement.As a result there was too-much jumping around in the program of a without any clear indication of how,where and why the control is flowing.In c writing,understanding and maintaining large programs became a very difficult task.Because of all these i prefer c++ than c.But there are some disadvantages of c++,like compiler overhead,runtime over loading,re-orientation of software developer

 

Answer by jhuma
Submitted on 12/28/2006
Rating: Not yet rated Rate this answer: Vote
The main difference between c and c++ is that c++ is an object oriented programming and as we know  c does not support this.since c++ is an advance version of c ,it is little bit difficult than c.Besides these,so many differences are there like keyword,we use printf to display message in c but in c++ we dont use printf to display message

 

Answer by boopalan
Submitted on 1/3/2007
Rating: Not yet rated Rate this answer: Vote
The main difference between C & C++  is the OOPS technology, C++ is an object oriented programing language, using which one can program using the objects that are been created. C++ have the provision of inheritance, constructors whereas you will not find these in C.
Still C is better then C++ because of its  easy and understable syntax

 

Answer by shalman
Submitted on 1/5/2007
Rating: Not yet rated Rate this answer: Vote
C++ has the concept of inheritance where as C does not posses that. In C++ the concept of overloading,friend function,polymorphism are present .In case of C it is not so.

 

Answer by ROSY
Submitted on 1/6/2007
Rating: Not yet rated Rate this answer: Vote
THE MAIN DIFFERENCE IS C++ USES OOP CONCEPT. AND THEN C USES STRUCTURES AND UNIONS WHEREAS C++ USES CLASSES.

 

Answer by praveen
Submitted on 1/7/2007
Rating: Not yet rated Rate this answer: Vote
in the case c we can't create dynamic objects

and also we can't inherit the structures .

2) re-usability of the code by using templates in the case of c++ .

3) data hiding is not possible in the case c  , but in case of c++ it is possible.

  

 

Answer by BenBioCompsNottsUni
Submitted on 1/10/2007
Rating: Not yet rated Rate this answer: Vote
Put simply it appears C++ can do everything that C can do, but it does some things, that C wasn't originally designed to do, more easily.

I have a basic knowledge of C, and, like others, I find the syntax of C++ strange at first sight, but once you're over that, it reads very much the same as C.

It's fairly common knowledge that you don't need to know one to learn the other, some think it helps to learn C before C++... of course it would help to know how the logic works etc, but if you want to learn C++ then you might as well just go straight into that. They should both be as easy as one another to learn, but if you learn one you'll have to get your head around the new syntax to program in the other.

As for which is better, it seems they both have their pros and cons, but at the end of the day, they do the same things in a different style to each other. The 'style' of C++, as already stated by others, "allows the programmer to more easily manage and operate with Objects".

I'm choosing to learn C++ simply because it's supposed to be easier to program when using objects. But I would not say that C++ is better than C or vice versa.

I write this because I have been looking for someone to tell me should I learn C or should I learn C++.

 

Answer by chin2
Submitted on 1/15/2007
Rating: Not yet rated Rate this answer: Vote
who cares

 

Answer by vm2gJGC2qt
Submitted on 1/17/2007
Rating: Not yet rated Rate this answer: Vote
Hi! Very nice site! Thanks you very much! vu3gaG9puPO

 

Answer by ashok jaja
Submitted on 1/17/2007
Rating: Not yet rated Rate this answer: Vote
The main difference between C & C++  is the OOPS technology, C++ is an object oriented programing language, using which one can program using the objects that are been created. C++ have the provision of inheritence,polymorphismm,operator overloading,data hiding,reusablity of code, constructors whereas you will not find these in C.
Still C is better then C++ because of its  easy and understable syntax !!!

 

Answer by sundar
Submitted on 1/18/2007
Rating: Not yet rated Rate this answer: Vote
difference between c and c++
1.c++ is object oriented programming language.
2.c++ uses object,inheritance,polymorphism,encapulation
3.c++ uses operator overloading

 

Answer by mehalasm
Submitted on 1/23/2007
Rating: Not yet rated Rate this answer: Vote
C++ is an extension of ANSI C. As such C++ provides for the following features that are not part of the C language. (1)Stream objects for I/O. (2) Inlining and overloading of functions. (3) Default values for function arguments. (4)Storage operators new and delete. (5) Support for classes. (6)
Support for abstract data types by providing for information hiding and the definition of a public interface. (7)Support for object-oriented programming through inheritance and dynamic binding.

 

Answer by Amit Bhatt
Submitted on 1/23/2007
Rating: Not yet rated Rate this answer: Vote
c follows top down approach and c++follows bottom up approach

 

Answer by Luke
Submitted on 1/25/2007
Rating: Not yet rated Rate this answer: Vote
Wow there are a lot of stupid people here... Also a lot of smart people, thankyou to the smart ones for giving me useful information, and thankyou to the dumb ones who think they're smart, because they made me laugh.
That is all.

 

Answer by Jomesh Peter
Submitted on 1/25/2007
Rating: Not yet rated Rate this answer: Vote
Forgot to answer the actual question: which direction you should go?  It really depends on what you intend to do with it.  

If you are going to stick to engineering type programs and programming controllers, stay with C.  Lots of C experts out there if you have any questions.

If you are going into developing GUIs or stuff for Mobile Phones, try C++.  You can develop GUIs in C too but it is easier in C++ in that each control is an object.  Some people use C++ like a lazy variant of C i.e. they use // for comments and make declarations all over the place: not just at the top of the routine.  All C++ compilers will compile C.  Lots of C++ experts in cyberspace if you get stuck.

If you wish to be tied to Microsoft and .net, torture yourself and have to change compilers every year or so, you could try C#.  Most people are still learning C#: it is only about 4 years old.  I'd wait another two years before trying C# - it is like Visual Basic when it started.  A new compiler is released every year with new features and it is just too much for carbon based lifeforms.

 

Answer by Tanveer Ahmed Tajir
Submitted on 1/26/2007
Rating: Not yet rated Rate this answer: Vote
The best way to create a software is to divide it into smaller parts and make it as separate tasks. By using C it is a bit difficult and using c++ with its oops concept it makes the job much easier and a wealth of time is saved. Thats why I think C++ is the right language to build a software and use it as a technique to program in different programming languages.

 

Answer by disanmakerere
Submitted on 1/28/2007
Rating: Not yet rated Rate this answer: Vote
The  difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.c++ is an advanced version of c which was invaded in the late 1980's in the same lab where c was also invaded and  most of the features of c are contained with in c++, but with a slight difference in some of the syntaxes to make c++ a more advanced Language.Besides,  there is no much difference between the two





 

Answer by vandit
Submitted on 1/28/2007
Rating: Not yet rated Rate this answer: Vote
well,several answers have been placed but according to me cognizance c and c++ have several diff but the most imp one is  the oops concept that has been put up as an advancement in c++ is the most remarkable features.....and the concept of inheritance and polymorphism have brought us a new vision in programming.....but still c is better than c++ because of its easy and comprehendable syntax which is easily understood by an opsimath.
thankyou.

 

Answer by tintu
Submitted on 1/30/2007
Rating: Not yet rated Rate this answer: Vote
According to me C is basic language for other languages such as C++,Java.C++ is an advanced version of C.C++ coding is complicated when compared to C.

 

Answer by pradeep
Submitted on 1/31/2007
Rating: Not yet rated Rate this answer: Vote
Reusablity is not at maximun extent in c ,where as in c++ more reusablity because  of inheritence concept and
also c uses top down approach where as c++ uses bottom up approach

 

Answer by chad_all_knowing
Submitted on 2/1/2007
Rating: Not yet rated Rate this answer: Vote
C++ is the same as C, but with ++ added.

 

Answer by Palani Ramkumar
Submitted on 2/8/2007
Rating: Not yet rated Rate this answer: Vote
c is better than c++ . because even though c++ suport oops concept,one can easily fetch any type of seal variable(private variable)using pointers.so c++ is not oop, but it is oops based programing language.

 

Answer by Robert William
Submitted on 2/8/2007
Rating: Not yet rated Rate this answer: Vote
C is not strongly typed language..u can transform int to float , float to int and vice-versa
but C++ is strongly typed Language

 

Answer by kumar
Submitted on 2/8/2007
Rating: Not yet rated Rate this answer: Vote
c is user friendly than the c++ because it will passes the parameter over different methods and it will not flexible in c++.
and familiar for all that c++ is comes under oops concept.

 

Answer by megha
Submitted on 2/9/2007
Rating: Not yet rated Rate this answer: Vote
Basic difference between C and C++ is that C is based on OOP's concept( which make it easy to implement)while C is not.In C++ we are provided with  concept of classes,inheritance,constructor etc which make it more easy language to work with.C++ is basically refine version of C as it is close 2 real world application.

 

Answer by kirti raheja
Submitted on 2/11/2007
Rating: Not yet rated Rate this answer: Vote
c++ is the extension of c no doubt
basic difference in c and c++ is
1.c is an middle level language whereas c++ is an high level language
2.c++ is a collection of function whereas c is not.
3.in c character limit is 32bits but in c++ no limit.
4.in c++ variables can be declare at any time during the program but in c variables to be declare at the static time only.

 

Answer by joseph_csit@yahoo.co.in
Submitted on 2/12/2007
Rating: Not yet rated Rate this answer: Vote
The main difference between C and C++ is
---- C is a procedural language and C++ is a object oriented language.but i prefer C only because of its faster at run time and easy understandable property.

 

Answer by vijay kumar
Submitted on 2/13/2007
Rating: Not yet rated Rate this answer: Vote
c++ is better than c.because c++ itself say that "c with additional features".therefore the c++ is better than c.

 

Answer by vijay
Submitted on 2/13/2007
Rating: Not yet rated Rate this answer: Vote
c++ is better than c.because c++ itself say that "c with additional features".therefore the c++ is better than c.

 

Answer by kalyan
Submitted on 2/26/2007
Rating: Not yet rated Rate this answer: Vote
In"c" a function main can be called with in the program
in"c++"it is not possible

 

Answer by ganesan
Submitted on 2/26/2007
Rating: Not yet rated Rate this answer: Vote
no
not bad for c with compare c++.

 

Answer by chinni
Submitted on 2/26/2007
Rating: Not yet rated Rate this answer: Vote
The major differences between c and c++ what I noticed is C++ is oops(object oriented programming. C++ is the extension of c
The syntax is #include <stdio.h> whereas in c++ it is #include <iostream>. In c the output function is printf ,input function is scanf whereas in c++ it is cout for ouput, cin for input. In c the declaration should be at the begining whereas in c++ the declaration can be made before using the variables.

 

Answer by Ashok Rathod
Submitted on 2/27/2007
Rating: Not yet rated Rate this answer: Vote
C is procedure oriented language,'
where c++ is Object Oriented Language,
C inlines every function call, Where as C++ does not, so reduces compile time

 

Answer by AURMC
Submitted on 3/4/2007
Rating: Not yet rated Rate this answer: Vote
1) C++ is super set of C
2) C++ with classes ( supports various scope for functions and variables)
3) Strongly typed
4) Better error handling features
5) OOPS support
6) Good Memory Management
7) Better Stream Support

 

Answer by D.sivarajan
Submitted on 3/11/2007
Rating: Not yet rated Rate this answer: Vote
C is a Struture oriented Language, Top-down approach and based on function But C++ is Object oriented Language,Bottom up approach and based on Object.so generally C++ is best  because it gives the reusability that not available in C.

 

Answer by das
Submitted on 3/14/2007
Rating: Not yet rated Rate this answer: Vote
c is structure oriented language
  data move one to anther difficult
  data hideing is not possible
  top down pgm
C++ is oops
    data move one to another very easily
      data hide is possible
     bottom up pgm

 

Answer by das
Submitted on 3/14/2007
Rating: Not yet rated Rate this answer: Vote
c is structure oriented language
  data move one to anther difficult
  data hideing is not possible
  top down pgm
C++ is oops
    data move one to another very easily
      data hide is possible
     bottom up pgm

 

Answer by sathish
Submitted on 3/15/2007
Rating: Not yet rated Rate this answer: Vote
The main difference b/w c& c++ is that OOPs Concepts. In C, we don't have OOPs, C++ is Super set of C. C is a basic Fundamental to learn about programming. C++ is Extention of C in Both Via Language and Programming.

 

Answer by san
Submitted on 3/15/2007
Rating: Not yet rated Rate this answer: Vote
C++ is advanced version to C.
C++ is more tough than C

 

Answer by Shanthi
Submitted on 3/15/2007
Rating: Not yet rated Rate this answer: Vote
c is a procedure oriented language. c is a top down approach. variable declaration should be declared in declaration section only.
c++ is a bottom up approach. Oops concepts.
variable declared in any where in the program.

 

Answer by G.Kirubavathi
Submitted on 3/19/2007
Rating: Not yet rated Rate this answer: Vote
C is a Structured oriented Programming Language.
C++ is a Object Oriented Programming Language.
C is Top down Approach.
C++ is bottom up approach.
c cannot use classes.
c++ we use class(as user defined)

 

Answer by kamal
Submitted on 3/19/2007
Rating: Not yet rated Rate this answer: Vote
c is a hardware language because it is near the assebly language while c++ is developed by using c language adding some extra function.c is the base of all language.

 

Answer by kkk
Submitted on 3/22/2007
Rating: Not yet rated Rate this answer: Vote
the basic difference is the concept of classes and objects which exists in c++

 

Answer by shashi
Submitted on 4/2/2007
Rating: Not yet rated Rate this answer: Vote
c is predecessor of c++.
c and c++ are different in the features of origin.
c is a structured programming language & c++ is a object oriented programming language.
in c programmer will think for the solution of a problem by breaking the problem into smaller modules.
in c++ we can model problem into real life entity.

 

Answer by Ani
Submitted on 4/3/2007
Rating: Not yet rated Rate this answer: Vote
Well,The major difference in c and c++ is OOPS...If the code of c exceed 10,000 line it become very hard to maintain and compile-link-load-test cycle.But in c++ it become easier to maintain by the help of OOPS concept.Like polymorphism and interitance...although c++ is not fully object oriented programe...its partially.and one difference is also there...c is top-down programming...but c++ is bottom-top programmming.

 

Answer by Kaash
Submitted on 4/4/2007
Rating: Not yet rated Rate this answer: Vote
C is Structure based and C++ is Object Oriented based

 

Answer by chandu_jc
Submitted on 4/5/2007
Rating: Not yet rated Rate this answer: Vote
the difference between c and c++ is---
1)in c we will use main() function but in c++ we must and should use void main() otherwise it gives an error.
2)c is a structure language and c++ is a object oriented language.
3)in c we will use printf and scanf statements but in c++ we will use cout and cin.
4)in c there are no classes.in c++ there are classes which are important than structures in c.
5)oops concept is there in c++.

 

Answer by ash
Submitted on 4/5/2007
Rating: Not yet rated Rate this answer: Vote
definitely OO features

 

Answer by pratap&samir
Submitted on 4/10/2007
Rating: Not yet rated Rate this answer: Vote
1.c doesn't provide any return type to main();but c++ provide any return type to main;
i.e we can write <data type> main()
and at d end of program we can return dat data type.
2. C can take only 1st 32 chars of a name. but C++ has no limits.

 

Answer by Aparna
Submitted on 4/11/2007
Rating: Not yet rated Rate this answer: Vote
In c++ it consist with object oriented programming function.


In c it consist with structure in function.

 

Answer by Prateek Kumar
Submitted on 4/14/2007
Rating: Not yet rated Rate this answer: Vote
there r quite a few no. of differences in between these two languages.

in C everythin is conceptualised in the form of functions, the focus is more on procedure rather than data. the data is always global so dere is always chances of it being mishandeled. no code reusability as all the functions are dependent on each odr so even to write a similar prgrm wid slight changes but of the same concept u hav to write another piece of code which isnt the case in c++.
type checkin den in C++ is more stringent in C++. c++ is more clse to real wrld programmin as evrythin is coceptualised in the form of objects...this accounts for code reusability also...

 

Answer by Aparna
Submitted on 4/15/2007
Rating: Not yet rated Rate this answer: Vote
1. IN c++  have constructor and destructor
2. IN c++ have friendly function.
1.  IN c there is no      constructoranddestructor
2.IN c does not  have friendly function.

 

Answer by madhuwesh
Submitted on 4/17/2007
Rating: Not yet rated Rate this answer: Vote
as we know that c is subset of c++.C++ is more efficient than C because   C++ support classes,inheritance,data hiding,polymorphism, by these facilities we can solve any real life problem very easily.

 

Answer by sivaprakash
Submitted on 4/21/2007
Rating: Not yet rated Rate this answer: Vote
c++ is extension of c. c++ is super set of c.
the most important feature of C++ is that it is object oriented language.But there are some basic changes made in c++.
for example in c if function don't pas any parameter u have to explicitly write void in brackets.but in c++ you don't need to write.

 

Answer by vajjala thiruapthireddy
Submitted on 4/24/2007
Rating: Not yet rated Rate this answer: Vote
c is procedure oriented language where as c++ supports object oriented features also.

 

Answer by Sumit
Submitted on 4/25/2007
Rating: Not yet rated Rate this answer: Vote
C++ and C both are better but in there need

 

Answer by Do you know me
Submitted on 5/3/2007
Rating: Not yet rated Rate this answer: Vote
I think that all matter in this page is wrong. C is more reliable than C++. syntax of C of easy or hard(depends on user). C is 'safe' than C++ concept. Computer hardware are more sufficient and compatible with C. C is only language which methods are useful than other language in present time. I don't think that what other tells about C. but i knew it very well that C is much batter than C++.

 

Answer by R.RAHUL
Submitted on 5/6/2007
Rating: Not yet rated Rate this answer: Vote
The main difference between c & c++ is the OOPS(Object Oriented Programming) concept in c++.c++ is an advanced version of c which was made in 1980's in the same lab where c was also made and hence most of the features of c are contained in c++ also,but with a little difference in some of the syntaxes to make c++ more advanced Language.Besides these there is not much difference between them

 

Answer by Silva
Submitted on 5/10/2007
Rating: Not yet rated Rate this answer: Vote
c and c++ is use in different situations. c is simpler than c++ and its is commonly used, but in the latter demands in programming c++ contains extra commands to demand. In short we must study the program language in the latest trend.

 

Answer by rajipriya
Submitted on 5/12/2007
Rating: Not yet rated Rate this answer: Vote
i think c++ is better than c.Because it includes many of the advanced features.Oops is one of the interesting feature in c++.It is easy to understand,easy to program compare to that of c.so,i like c++ very much.

 

Answer by rajipriya
Submitted on 5/12/2007
Rating: Not yet rated Rate this answer: Vote
i think c++ is better than c.Because it includes many of the advanced features.Oops is one of the interesting feature in c++.It is easy to understand,easy to program compare to that of c.so,i like c++ very much.

 

Answer by Rajeev
Submitted on 5/21/2007
Rating: Not yet rated Rate this answer: Vote
When you use malloc function under C++ then you need to typecast explicitly but C does internally

 

Answer by Sac
Submitted on 5/22/2007
Rating: Not yet rated Rate this answer: Vote
I think the difference lies in the way we think of solutions to be developed. C++ provides the notion of class/object, which is a logical unit or container to group related functionality.
The reuability with inheritance and polymorphism is very nice. Ease of life with strings is yet another facility. C is very good for system programming and raw manipulations. C++ is good for application development which are thought of in form of components

 

Answer by Anshul Arora
Submitted on 5/31/2007
Rating: Not yet rated Rate this answer: Vote
             C                                          

1. C is a structured language                

2. C is faster at runtime as                  
   compared to C++

3. It is less rigid when compared with C++                                  

4. C dont have these features                                                                

    
5. It is less relaible as compared to C++    


              C++

1. It is an object oriented language

2. It is slower as compared to C

3. Type checking for example is much more rigid in C++ than it is in C

4. C++ have the provision of inheritence,constructors

5. It is more reliable

 

Answer by mamu
Submitted on 6/1/2007
Rating: Not yet rated Rate this answer: Vote
c++ is better than c but some people is to say that c++ is harder than c i think c++ is very good concept based on c and also OOPS.
It has a features of classes. from

             INDIA

 

Answer by sivaraj
Submitted on 6/2/2007
Rating: Not yet rated Rate this answer: Vote
c and c++
   *the answers is very nice
   *very useful
   *you gives the c and c++ syntax
   *ok thank you

 

Answer by kishore
Submitted on 6/16/2007
Rating: Not yet rated Rate this answer: Vote
c is structured language, c++ is an oop language.
   c++ has class which gives modularity to a program while c doesn't support.
   c is opted for high speed, low memory programs.
   c does not handle exceptions whereas c++ does it.
   c has weak type checking whereas c++ has fairly strong type checking.
   c has support to call by value mechanism whereas c++ supports both call by value & call by reference mechanisms.
   c doesnot supports operator overloading whereas c++ supports it.

 

Answer by ranjith
Submitted on 6/19/2007
Rating: Not yet rated Rate this answer: Vote
C++ is an extension of C language. This means that you can not only use the new features introduced with C++ but can also use the power and efficiency of C language. C and C++ are no more language for writing compilers and other languages, these general purpose languages are used worldwide in every field.
Here is a list of differences between c and c++.
The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable. It also helps the reuse of code by packaging a group of similar objects or using the concept of component programming model.  It helps thinking in a logical way by using the concept of real world concepts of objects, inheritance and polymorphism. It should be noted that there are also some drawbacks of such features. For example using polymorphism in a program can slow down the performance of that program.
On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.


 

Answer by vin
Submitted on 6/19/2007
Rating: Not yet rated Rate this answer: Vote
C++ has a concept of OOP's since it is a advance of C. C can understand earlier because of their easy syntax.

 

Answer by pranay
Submitted on 6/21/2007
Rating: Not yet rated Rate this answer: Vote
c is an only alphabate and c++ contain  c including two(2)plus(+)signs.

 

Answer by pranay
Submitted on 6/21/2007
Rating: Not yet rated Rate this answer: Vote
c is an only alphabate and c++ contain  c including two(2)plus(+)signs.

 

Answer by ramu
Submitted on 6/22/2007
Rating: Not yet rated Rate this answer: Vote
i think c and c++ having common features but c++ supports oops concepts in these days technology is being developed so far.whatever the new technologies r developed those can be depend upon their previous versions.so i think   basically 'c' is preferable than c++

 

Answer by student
Submitted on 6/26/2007
Rating: Not yet rated Rate this answer: Vote
C is a structure oriented language whereas C++ is an object oriented language.
structure oriented in the sense the program has to be executed in particular sequence but in C++ we can create objects which are reusable & used to access the methods , data of classes.
concepts like inheritance,polymorphism data abstraction, data encapsulation are available in C++.

 

Answer by khushboo
Submitted on 6/27/2007
Rating: Not yet rated Rate this answer: Vote
c++ provides more features.since c++ allows us to create hierarchy related objects,we can build special object oriented libraries for using it later.c++ is also able to map real world problem properly.

 

Answer by priya
Submitted on 6/30/2007
Rating: Not yet rated Rate this answer: Vote
To my knowledge the big difference is c++ uses oops concept where as c won't.
Following r the other differences:
1) syntaxes are different.
2) parameters can pass in c++.
3) polymorphism and inheretence are possible.
c++ is the advanced version of c but c++ is slower during runtime and compiation.
codes are  easy to understand in c.

 

Answer by dolly
Submitted on 6/30/2007
Rating: Not yet rated Rate this answer: Vote
c and c++ have a lot of differences. basically c is a structural programming language whereas c++ is object oriented programming language. in a c structure the member functions n variables are public by default whereas in c++ the functions and variables are private by default.c++ is basically created to protect some of the variables and members from all the users. hence it has a special acess specifier called protected. c++ uses classes whereas c doesnt have classes.c uses scanf and printf whereas c++ uses cout and cin.many more when remember:)

 

Answer by USVISHWAKARMA
Submitted on 7/2/2007
Rating: Not yet rated Rate this answer: Vote
C++ is an OOPS language that has a definite structure like a tree. In C++ the object gets its properties from its inheritance class. In C the object has to be defined at each level for its property / functionality.
But still C has much simpler syntax than C++.

 

Answer by pawas
Submitted on 7/2/2007
Rating: Not yet rated Rate this answer: Vote
Yes i am agree on the fact that C codes are
faster in compilation and execution too but they lack some organized framework(object less design ) . C++ removes these features with new concepts by introducing OOPS ..

 

Answer by Venkateswaran
Submitted on 7/4/2007
Rating: Not yet rated Rate this answer: Vote
declaration part takes place at the beginning of every c main block where as in C++ , declare it any where. Header file is not necessary for c program but it is must for c++ program. In C , Header file is a collection of functions whereas c++, header files are the collection of classes.
pointer is used to return more than one variable in c where as in c++ , reference variable is used to return more than one values.

 

Answer by isha
Submitted on 7/5/2007
Rating: Not yet rated Rate this answer: Vote
I think c is more easy than c++.
But due to some added advantages in c++ we go for c++.

 

Answer by THODETI
Submitted on 7/9/2007
Rating: Not yet rated Rate this answer: Vote
THE MAJOR DIFFERENCE BETWEEN C AND C++ IS OOPs.OOPs ALLOWS US CREATE OUR OWN DATA TYPES USING CLASSES THAT ARE SIMILAR TO C's STRUCTURES.WE HAVE NO STD I/O IN C BUT HAVE IN C++.INHERITANCE IS NOT POSSIBLE IN C BUT IN C++

 

Answer by ABHINAV
Submitted on 7/12/2007
Rating: Not yet rated Rate this answer: Vote
C is a general programming language.  Small compiler, lots of free compilers.  Quite easy to learn once you get the hang of the syntax.  It is available on almost every platform you can think of.  Note that there are 3 main variants of C: K&R, C89 and C99.  Most compilers are C89.

C++ is an Object Oriented variant of C.  If you are going the C++ route, don't learn C first: you'll get into a lot of bad habits.  However, it is a big language with lots of new concepts.  If you are intending to write GUIs, this is probably the way to go.  It is not available on as many platforms as C.  There is a standard library of algorithms STL which does all the standard stuff like linked lists, vectors etc.  There are lots of free compilers about.

 

Answer by Uday Gadhiya
Submitted on 7/17/2007
Rating: Not yet rated Rate this answer: Vote
c is objest based language

while

c++ is object oriented language

 

Answer by Meenakshi Panigrahi
Submitted on 7/19/2007
Rating: Not yet rated Rate this answer: Vote
      c                        C++
* printf,scanf          * cout,cin
* structure variable    * Class variable
* No security for data  * Has security
* Top-Down approach     * Bottom-up  
                           approach
* Procedure oriented    * Object oriented
* There are 32 keywords * 48 keywords
* conversion character  * conversion
   required                characters not
                           required
                                                    

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to general questions


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.