CoolInterview.com - World's Largest Collection of Interview Questions
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!


    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES C++ DETAILS
    Question :
    What is Difference between c and c++?

    Posted by: brindha on 1/19/2008

    Contact brindha  Contact brindha
    Category C++ Interview Questions
    Rating (1.7) By 3 users
    Added on 1/19/2008
    Views 4748
    Rate it!
    Answers:

    C is a structured programming language where as C++ is an object oriented language. C++ is also called as C with Classes.



     Posted by: anusha    

    Contact anusha  Contact anusha

    both C and C++ are programming languages. C++ is termed as superset of C.
    C is a powerful and elegent language.almost all c PROGRAMS ARE ALSO c++ PROGRAMS.
    in C, it facilitates--" topdown structured design" as against C++ provides bottom-up object-oriented design.
    the C language is built from functions (like printf)that execute different tasks.

    in c++, it is a object-oriented system. objects are considered to be "a partitioned area of computer memory" that stores data and set of operations that can access that data.
    the three most important facilities that c++ adds on to are classes, function overloading and operator overloading.



     Posted by: prabhakar r vaze    

    Contact prabhakar r vaze  Contact prabhakar r vaze

    In C we cannot create a class.
    The C++ contains the set of class.
    In C++ it having operator overloading and in C it doesn't have.
    The C++ is the advance version of C.



     Posted by: subhash    

    Contact subhash  Contact subhash

    C is structured programming language.C++ is object oriented programming language.



     Posted by: sankar    

    Contact sankar  Contact sankar

    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.



     Posted by: Lokender Singh    

    Contact Lokender Singh  Contact Lokender Singh

    C is procedure oriented language while C++ is object oriented language.



     Posted by: meena bharti    

    Contact meena bharti  Contact meena bharti

    1.C is a structured programming language, c++ is an object oriented programming language.

    2.C++ supports inheritance, reusability,polymorphism
    c does not support any of these.



     Posted by: T.M.Shravanthi    

    Contact T.M.Shravanthi  Contact T.M.Shravanthi

    c is topdown parsing.
    c++ is bottom up parsing.
    c is structured language.
    c++ is object oriented language.



     Posted by: SATYANARAYANA    

    Contact SATYANARAYANA  Contact SATYANARAYANA

    C++ is fully object oriented.We can use the oops principes like polymorphism,encapsulation,inheritance,data hiding,reusability.
    C is not object oriented language.



     Posted by: priya    

    Contact priya  Contact priya

    c is a structured programming and
    c++ is a object oriented programming.



     Posted by: devendra    

    Contact devendra  Contact devendra

    1. C is a procedural oriented programming.

    2. c++ is a object oriented programming.


    3. C language is top down approach .

    4 .C++ is bottom up approach.



     Posted by: Naga Malleshwari    

    Contact Naga Malleshwari  Contact Naga Malleshwari

    The basic difference between C n C++ is c++ is an object oriented language whereas C is a middle level language.There are many difference but this is the main difference.



     Posted by: Arti    

    Contact Arti  Contact Arti

    C is Procedure oriented language while C++ is Object Oriented Language.

    C++ deals with, Polymorphism,Inheritance and Data Encapsulation concepts.



     Posted by: jeeva    

    Contact jeeva  Contact jeeva

    C is procedural language while C++ is object oriented programing.



     Posted by: devesh    

    Contact devesh  Contact devesh

    C++ take advantage over following points:
    1. Reusability (Inheritance).
    2. Maintainability (Because of Data encapsulation code looks more readable).
    3. Optimizations(Usage of Templates to increase the development time).



     Posted by: Balaji T    

    Contact Balaji T  Contact Balaji T

    C is a Procedural Programming language.
    C++ is an object oriented programming language.



     Posted by: suresh    

    Contact suresh  Contact suresh

    C is middle level language , C++ is high level language.
    Declarations of Structure in c & c++ is different.



     Posted by: nilesh    

    Contact nilesh  Contact nilesh

    The main difference between C & C++ is:
    1.c is a procedure oriented language but c++ is object oriented.

    2.There are new features in c++ like
    abstraction,encapsulation,polymorphism which make c++ more powerful.



     Posted by: vijaya karunakar    

    Contact vijaya karunakar  Contact vijaya karunakar

    C is a structured language while c++ is a object oriented language.



     Posted by: Niti    

    Contact Niti  Contact Niti

    c is a procedural language and we write procedures to acomplish a task.c have top down approach of programming that is the limitation of c. C++ is the updared form of c with various striking features like class, Inheritance, data encapsulation and abstractiom, polymorphism, ete. c++ is a free format language and follow bottom up approach of programming which provides code reusability and time saving.



     Posted by: Ramendra Singh    

    Contact Ramendra Singh  Contact Ramendra Singh

    The main difference between C & C++ is that of classes. In C++ we have classes but in C we don't have it.
    Moreover C++ is an Object Oriented Language but C is not.



     Posted by: ananya    

    Contact ananya  Contact ananya

    C is structured programming language and C++ is Object oriented programming language. one can say C++ is superset of c, in the sense that C is with built in OOP features like Encapsulation,abstraction,inheritance,polymorphism.

    Code reusability is one of the fascinating feature of C++ by which old code can call new code without recompilation of old code.



     Posted by: Sachin Ashok Chavan    

    Contact Sachin Ashok Chavan  Contact Sachin Ashok Chavan

    C language is top-down approach and
    C++ language is bottom to up approach .



     Posted by: anshul    

    Contact anshul  Contact anshul

    C is a procedural oriented language & c++ is a oops language.
    C can store up to 32 char where as c++ can store 0 to 255 char.
    In c we won't have inheritance ,polymorphism,data hiding & data abstraction concepts ,keyword new,friend etc.



     Posted by: ajay    

    Contact ajay  Contact ajay

    There are considerable differences. To put it simple, 'C++' is the object oriented 'C'. And C programming is one of the applicational area of C++ programming. And there are two different areas: STL and Object Oriented. While working on C++, you'll have to use different areas depending on the situation.



     Posted by: Mohan P    

    Contact Mohan P  Contact Mohan P

    c is function oriented whereas c++ is object oriented.



     Posted by: anuj goel    

    Contact anuj goel  Contact anuj goel

    C is a structure oriented language while C++ is a oops and generic language.In C unrestricted access to global data while in C++ it is restricted.In C++ data & function are related while in C they are unrelated.



     Posted by: paresh patel    

    Contact paresh patel  Contact paresh patel

    C
    Procedural Language
    better Multithreading
    Used for code developement

    C++
    Object oriented language
    Standard template library
    Generally used for Applications



     Posted by: MA    

    Contact MA  Contact MA

    C is a procedure oriented language ie it give more importance to algorithm rather than data whereas C++ is an object oriented language ie it give more importance to data.



     Posted by: Mary Barbara Salu Silvester    

    Contact Mary Barbara Salu Silvester  Contact Mary Barbara Salu Silvester

    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 declare it as an array



     Posted by: Manoj Kumar Prajapati    

    Contact Manoj Kumar Prajapati  Contact Manoj Kumar Prajapati

    c is procedure oriented language where as c++ is object oriented language.In c++ data is bound to the classes very strictly using access specifiers where as in c data can flow freely throughtout the program.In c we can declare only variables in a structure where as incasevof c++ we can declare both data variables and member functions.



     Posted by: sreevidhya    

    Contact sreevidhya  Contact sreevidhya

    There are a lot of differences between the two...some of these are as follows .....
    1)C is a procedural language whereas C++ is an object oriented language.
    2)C++ have exception handling mechanism , C does not have.
    3)C has stdio.h header for I/O, C++ has iostream.h for I/O.
    4)C++ supports inheritance, polymorphism, encapsulation.
    5)C has classes in which default is private whereas C has structure where default is public.
    6)C++ has templates.
    7)C++ supports runtime polymorphism.



     Posted by: Girijesh    

    Contact Girijesh  Contact Girijesh

    c lang. is object based lang. and c++ is object oriented lang.
    in c++ is have all the featurre of c lang.and it also include some feature as like inheritence, incapsulation,data hiding and abstraction etc.



     Posted by: rupesh chouhan    

    Contact rupesh chouhan  Contact rupesh chouhan

    C++ is a language built on C, C++ is enriched with OOPS concept, C is rather a low level language. Where C++ can be used in High level programming.



     Posted by: Rajeev Unnithan    

    Contact Rajeev Unnithan  Contact Rajeev Unnithan

    C is a general-purpose programming language. It has been closely associated with the UNIX system where it was developed.
    C is a relatively low lavel language.
    C++ is a largely a superset of ANCI C.
    A major difference between C and C++ is the limit on the length of a name.



     Posted by: AMBUJ SRIVASTAVA    

    Contact AMBUJ SRIVASTAVA  Contact AMBUJ SRIVASTAVA

    C++ is much pickier about type declarations and data type conversion, and how the variables are used.
    C++ forces all functions to declare before it is used.
    C++ has early and late binidng while C has only early binding type.



     Posted by: Pratibha Gupta    

    Contact Pratibha Gupta  Contact Pratibha Gupta


    If you have the better answer, then send it to us. We will display your answer after the approval.
    Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    Help me to write a c++ program using strings that does the following tasks 1)Removes multiple spaces between words. 2)find the longest word in a text. 3)extract the number of integers in the text. 4)extract the number of doubles.5)extract the number of words in a sentence.
    View Answer
    What is the difference between delete and delete [ ]?
    View Answer
    What are advantages of pure virtual function?
    View Answer
    When do we use abstract.h?Give an example with a small program.
    View Answer
    write a program on far,null,near,void ,wild,this pointers? And find out the advantages and disadvantages among these pointers?
    View Answer
    Write a program on abstract class.
    View Answer
    Is it possible to know that how much memory used by a member function or constructor?
    View Answer
    what are the differences between member function and constructor?
    View Answer
    why c++ is called as object-oriented language? Here what does object mean?
    View Answer
    what are the differences between c and c++.what are the advantages the are only in c++ but not in c
    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL C++ Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/12763/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.59