?
Solved

Difference b/w c and c++

Posted on 2003-12-09
2
Medium Priority
?
1,648 Views
Last Modified: 2008-02-26
What are the main differences b/w c and c++
0
Comment
Question by:hellhe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
minamkhan earned 500 total points
ID: 9907738
Actually c is a structured language whereas c++ is  hybrid language in which one can write both structured and objectoriented code.
0
 
LVL 11

Expert Comment

by:bcladd
ID: 9907751
C++ is object-oriented and C is not.

C++ supports inheritance through the use of related (inherited) classes.
C++ supports polymorphism through the use of virtual funcitons.

C++ supports meta-programming using templates; C and C++ share a preprocessor and many things are possible using macro definitions but templated classes and functions permit more complex, compile-time progrmaming (known as meta programming in the C++ literature).

C++ has exception handling

C++ has the Standard Template Library (STL), a standard library that has a string class as well as dynamically sized container classes that are efficient and easy to use.

C++ is, generally speaking, a super-set of C (I know Plauger would beat me for that generalization).

Hope this helps, -bcl
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question