15 Most Important Differences Between C And C++

Engg.... | 06:51 | | | Best Blogger Tips
Relationship b/w C and C++

 Basic Introduction:
  • C++ is derived from C Language. It is a Superset of C. 
  • Earlier C++ was known as C with classes. 
  • In C++, the major change was the addition of classes and a mechanism for inheriting class objects into other classes. 
  • Most C Programs can be compiled in C++ compiler. 
  • C++ expressions are the same as C expressions. 
  • All C operators are valid in C++. 


Following are the differences Between C and C++ :


                               C                              C++
1. C is Procedural Language.1. C++ is non Procedural i.e Object oriented Language.
2. No virtual Functions are present in C2. The concept of virtual Functions are used in C++.
3. In C, Polymorphism is not possible.3. The concept of polymorphism is used in C++.
Polymorphism is the most Important Feature of OOPS.
4. Operator overloading is not possible in C.4. Operator overloading is one of the greatest Feature of C++.
5. Top down approach is used in Program Design.5. Bottom up approach adopted in Program Design.
6. No namespace Feature is present in C Language. 6. Namespace Feature is present in C++ for avoiding Name collision.
7. Multiple Declaration of global variables are allowed.7. Multiple Declaration of global varioables are not allowed.
8. In C
  • scanf() Function used for Input.
  • printf() Function used for output.
8. In C++
  • Cin>> Function used for Input.
  • Cout<< Function used for output.
9. Mapping between Data and Function is difficult and complicated.9. Mapping between Data and Function can be used using "Objects"
10. In C, we can call main() Function through other Functions 10. In C++, we cannot call main() Function through other functions.
11. C requires all the variables to be defined at the starting of a scope.11. C++ allows the declaration of variable anywhere in the scope i.e at time of its First use.
12. No inheritance is possible in C.12. Inheritance is possible in C++
13. In C, malloc() and calloc() Functions are used for Memory Allocation and free() function for memory Deallocating.13.In C++,  new and delete operators are used for Memory Allocating and Deallocating.
14. It supports built-in and primitive data types.14. It support both built-in and user define data types.
15. In C, Exception Handling is not present.15. In C++, Exception Handling is done with Try and Catch block.


Please Share it! :)
Do you like this Story?

Get Free Email Updates Daily!

Follow us!

111 comments:

  1. nice...i learn some extra difference from this

    ReplyDelete
  2. Really good.
    Better if a program in both C and C++ is included.

    ReplyDelete
  3. Look at here Difference Between C and C++

    http://geeksprogrammings.blogspot.in/2013/06/difference-between-c-programming-and-c.html

    ReplyDelete
  4. Plz explain the 6 point difference of nameSpace

    ReplyDelete
  5. Its really nice.i got to know something new.

    ReplyDelete
  6. its good...v can extract our knowledge

    ReplyDelete
  7. Its very good and very important difference between c and c++. Thanks.

    ReplyDelete
  8. Replies
    1. Difference no 10 is not working.

      Delete
    2. As per C++ standards, calling main explicitly is not allowed and it will lead to undefined behavior. But some compiler don't follow this rule and they allow to call main explicitly from main itself or from other functions which shouldn't be. So Diff no 10 is correct.

      Delete
  9. nice i learnt some new differences from this

    ReplyDelete
  10. can any body tell me in which software c & c++ run or used or explaine....? plz tell me on this wall or mexxx1291@gmail.com

    ReplyDelete
  11. realy superb information....

    ReplyDelete
  12. nice one and all the software professionals who are searching for s/w jobs now a days have to know must and differences between the c and c++ and java and .net languages

    ReplyDelete
  13. Easy learn the difference between C&C++ and good difference

    ReplyDelete
  14. Nice Information...
    Thank you...

    ReplyDelete
  15. Thanks for your ideas. You can also find the details on Affity Solutions, at the C++ Developers. The main object of the
    Affity Solutions is to provide quality web services and is among the few software development
    company in Nagpur.

    ReplyDelete
  16. its was very very useful ... thanks

    ReplyDelete
  17. Thanks brother for giving such information........

    ReplyDelete
  18. good difference nd thx it helped me a lot

    ReplyDelete
  19. I am grateful to YOU,This information helped me a lot**************************

    ReplyDelete
  20. Inline functions
    Ability to declare variables anywhere, instead of only after another declaration or at the start of a compound statement
    New data types like long long int, optional extended integer types, explicit boolean data type and complex type to denote complex numbers
    Array lengths can be variable
    One-line comments beginning with // supported
    Library functions like snprintf
    New header files, such as stdbool.h and inttypes.h
    Type-generic math functions (tgmath.h)
    Improved support for IEEE floating point
    Designated initializers
    Compound literals
    Support for variadic macros (macros of variable arity)

    ReplyDelete
  21. cin ,cout are objects not functions like printf,scanf

    ReplyDelete
  22. very useful information!!! helps to understand the basics of both the languages.. thank you!!!

    ReplyDelete
  23. very useful information!!! helps to understand the basics of both the languages.. thank you!!!

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. very helpful information both between C and C++
    Thanks

    ReplyDelete
  26. good information to all which is usefull to interviews and all times
    thank u sooo much for publishing this....

    ReplyDelete
  27. Thank you so much...this information is help me my final examination

    ReplyDelete
  28. C and C++ classes in Delhi NCR- RKM IT Institute provides high quality C and C++ classes in Delhi, C and C++ training in Delhi NCR, C and C++ live project training in Delhi NCR at affordable price. To get details information about free and timing visit our website Edutech.rkmsolution.com.

    ReplyDelete
  29. This is great and just what I've been looking for. "You tried something new!! Good for you! I’m always afraid I’ll mess up when I try new stuff. What made you decide to try something new? I’d like to get motivated. Maybe you have some ideas you can share"

    Air Bra | Hair biulding fibers | Allaah Barkat Locket | Step Up Height Increaser | Sandhi Sudha | Hanuman chalisa yantra

    ReplyDelete
  30. thank u very much...it is very helpful............

    ReplyDelete
  31. C and C++ Live Project Training in Delhi- RKM IT Institute is a skill enhancement coaching center that makes engineers hot property in the booming IT industry. We offer C and C++ Programming Concepts & Languages training by experts.

    ReplyDelete
  32. This is one of the awesome and Important post.I like your blog description.

    c language training

    ReplyDelete
  33. very good information its important part of the knowledge

    ReplyDelete
  34. This comment has been removed by the author.

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. Very nice & concious information...

    ReplyDelete
  37. Difference between c and c++

    The main difference between C and C++ is, C is the procedure oriented language and C++ is the object oriented language.

    ReplyDelete
  38. there is a problem that i am not getting c language properly so how could i do...... i want some guidens for it...

    ReplyDelete
  39. nice and very esayly understand are all people thanks for publiced c and c++.

    ReplyDelete
  40. C language is a computer programming language.Very easy to learn and a strutured language. C language is a object oriented programming.
    C++ training in chennai | Unix training in Chennai | FITA Velachery Reviews

    ReplyDelete
  41. Very good information, I have got some other differences..👍👍👍

    ReplyDelete
  42. Very good information, I have got some other differences..👍👍👍

    ReplyDelete
  43. Programming is very interesting and creative thing if you do it with love. Your blog code helps a lot to beginners to learn programming from basic to advance level. I really love this blog because I learn a lot from here and this process is still continuing.
    Love from Pro Programmer

    ReplyDelete
  44. The main thing which i like about web designing is that it needs creativity and we need to work differently acccording to our clients need this needs a creativity and innovation.
    web designing course in chennai|web designing training in chennai|web designing courses in chennai

    ReplyDelete


  45. step up height increaser It’s an
    amazing ayurvedic product that not just increase your height up to 5 inch but also boost your strength,
    bone mass density. Step up body growth formula is a healthy product that also boost your immune and digestive
    system and provide you with healthy complete body growth.



    step up height increaser It’s an
    amazing ayurvedic product that not just increase your height up to 5 inch but also boost your strength,
    bone mass density. Step up body growth formula is a healthy product that also boost your immune and digestive
    system and provide you with healthy complete body growth.

    ReplyDelete
  46. step up height increaser It’s an
    amazing ayurvedic product that not just increase your height up to 5 inch but also boost your strength,
    bone mass density. Step up body growth formula is a healthy product that also boost your immune and digestive
    system and provide you with healthy complete body growth.



    step up height increaser It’s an
    amazing ayurvedic product that not just increase your height up to 5 inch but also boost your strength,
    bone mass density. Step up body growth formula is a healthy product that also boost your immune and digestive
    system and provide you with healthy complete body growth.

    ReplyDelete
  47. This comment has been removed by the author.

    ReplyDelete
  48. Hi, actually I'am new to angularJs and infact I'am learning angularjs with online training. I'am having doubt, if you could solve the doubt for me that would be very helpful. The doubt is, how can I reset a “$timeout”, and disable a “$watch()”?
    Regards,
    angularjs training in Chennai | angularjs training | angularjs training Chennai

    ReplyDelete
  49. The best thing about HTML5 is that it allows the developers to embed the video files, audio files, and high quality graphics without any third party applications.
    html5 training in chennai | html5 training institutes in chennai | FITA Academy reviews

    ReplyDelete
  50. Really good difference.....

    ReplyDelete
  51. Very useful god bless you man

    ReplyDelete
  52. This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Love from

    ReplyDelete
  53. Amazing content.If you are interested instudying nodejs visit this website. Nodejs is an open source, server side web application that enables you to build fast and scalable web application that is capable of running large number of simultaneous connections that has high throughput.
    Node js Training in Chennai | Node JS training institute in chennai

    ReplyDelete
  54. this difference between c and c++ article is really easy to understand. Thanks, please keep sharing these informative articles.

    ReplyDelete
  55. This is what I was looking for from last week. Great work done. :)
    C Language Training in noida

    ReplyDelete
  56. Great post,it will suruly help to people to find out the c and C++ training and blog gives the best and the interesting information about c and C++ Training.

    ReplyDelete
  57. it's eassy and most difference

    ReplyDelete
  58. Good difference and easy to understand

    ReplyDelete
  59. I read lot of articles and really like this article. This information is definitely useful for everyone in daily life. Fantastic job.

    C Language Training

    ReplyDelete
  60. Struts2 Training Institutes in Chennai Struts2 Training Institutes in Chennai Spring Training Institutes in Chennai Spring Training Institutes in Chennai Java MicroServices Training Institutes In Chennai Java MicroServices Training Institutes In Chennai

    ReplyDelete
  61. This comment has been removed by the author.

    ReplyDelete
  62. This comment has been removed by the author.

    ReplyDelete
  63. Very good information, I have got some other differences.
    websphere training in chennai

    ReplyDelete
  64. C is a programming language and used for developing the applications. C language is the base for other programming language like C++ progamming language. you can't continue with C++ till you become master in C language.
    C Language Training Institute

    ReplyDelete
    Replies
    1. For learning C++, C is not mandatory to learn. One can directly jump into C++

      Delete
  65. Great information I will tweet to my friends to get them to check it out. keep it up. Thanks for sharing!.If have a long time than visit to:
    crosswords puzzles | dream league soccer apk | cookie clicker | dream league soccer apk | crossword puzzles | cookie clicker

    ReplyDelete
  66. Very nice collection of differences, more you can find here https://www.tutorialcup.com/cplusplus/difference-between-c-cpp.htm

    ReplyDelete
  67. Really useful and authentic information. Appreciable

    ReplyDelete
  68. Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    iOS Training in Chennai

    ReplyDelete