Home > Programming > 10 Major Differences Between C And C++

10 Major Differences Between C And C++

 

C++, as the name suggests is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code. Here are the 10 major differences between C++ & C...

1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)

In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process.
Also, it is easier to implement/edit the code in case of C++ for the same reason.

2. In case of C, the data is not secured while the data is secured(hidden) in C++

This difference is due to specific OOP features like Data Hiding which are not present in C.

3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post)

C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on whats going on in the machine hardware) & high-level languages(concentration on the program itself) & hence is regarded as a middle-level language.

4. C uses the top-down approach while C++ uses the bottom-up approach

In case of C, the program is formulated step by step, each step is processed into detail while in C++, the base elements are first formulated which then are linked together to give rise to larger systems.

5. C is function-driven while C++ is object-driven

Functions are the building blocks of a C program while objects are building blocks of a C++ program.

6. C++ supports function overloading while C does not

Overloading means two functions having the same name in the same program. This can be done only in C++ with the help of Polymorphism(an OOP feature)

7. We can use functions inside structures in C++ but not in C.

In case of C++, functions can be used inside a structure while structures cannot contain functions in C.

8. The NAMESPACE feature in C++ is absent in case of C

C++ uses NAMESPACE which avoid name collisions. For instance, two students enrolled in the same university cannot have the same roll number while two students in different universities might have the same roll number. The universities are two different namespace & hence contain the same roll number(identifier) but the same university(one namespace) cannot have two students with the same roll number(identifier)

9. The standard input & output functions differ in the two languages

C uses scanf & printf while C++ uses cin>> & cout<< as their respective input & output functions

10. C++ allows the use of reference variables while C does not

Reference variables allow two variable names to point to the same memory location. We cannot use these variables in C programming.


Don't forget to check out :


MORE -

11. C++ supports Exception Handling while C does not.

C does not support it "formally" but it can always be implemented by other methods. Though you don't have the framework to throw & catch exceptions as in C++.

(will add more..)


UPDATES (ref to comments)-

Praveen - some of them r telling ‘C’ is a middle level language…..tell me the correct type of level language….?

Answer-@praveen – I agree there are always mixed opinions about this one. Some even like to call it a high-level language. But there’s really no determining factor behind the level of a programming language. Essentially, we’re making all the changes at the machine level, right? Now, as we increase the abstraction and move away from the machine-level, the level of the language increases. So, the level is nothing but the level of abstraction. So, most of the languages we use in applications today will have aspects of both machine-level and user-level. The two levels are machine-level & user(real world)-level while high & low levels are relative terms. Although, C is on a lower level of abstraction “relatively”- when compared to C++. Hence, referred to here as low-level.

Mitchell -
cin and cout are part of the std namespace, and they’re not functions. They’re almost like “pipes” in a sense. What you’re doing is essentially bit shifting (<> are bit shift operators) data into and out of them. As well, C++ still supports use of printf and scanf, so your std.cin and std.cout are by no means exclusive in their duties.

  1. anu
    August 10th, 2010 at 02:18 | #1

    gud this is wat im searching actually……….thanks………………..

  2. Bilesh
    August 14th, 2010 at 07:21 | #3

    Well compiled!

  3. August 14th, 2010 at 11:53 | #5

    Ronnie :: You can even create your own namespaces and do a lot of stuff with it..
    Check out the post More On Namespaces to find out how to do the same.

  4. narendra girase
    August 25th, 2010 at 02:33 | #6

    thanks
    sir,
    becouse today i undusstand the actual difference between c & c++

  5. Kiran
    September 2nd, 2010 at 04:55 | #7

    Thank you very much for this brief n imp notes

  6. sreevasu
    September 6th, 2010 at 22:43 | #8

    thanks for providing the valueble information

  7. September 8th, 2010 at 04:23 | #9

    c is middle level language while c++ is a high level language

  8. saurabh kushwah
    September 17th, 2010 at 05:54 | #10

    which 1 uses top down..nd bottom up approach..nd why...

  9. dhananjay jha
    September 20th, 2010 at 11:10 | #11

    great job....................
    thanks.

  10. sanjeeta
    September 20th, 2010 at 12:28 | #12

    excellent,this is what i m searching...........................thanks

  11. September 24th, 2010 at 23:58 | #13

    well scheduled data packages.............!!! i was lukin for that.....

  12. September 25th, 2010 at 00:00 | #14

    iam looking for detailed description of c++ language..... wer is it ??? pls include dat...!!!

  13. Santosh
    September 27th, 2010 at 22:01 | #15

    thanks a lot! very useful ones/.

  14. bhuvana
    September 29th, 2010 at 01:25 | #16

    thans for good explanation.

  15. October 1st, 2010 at 00:53 | #17

    @saurabh kushwah - see the 4th difference..

  16. khushi
    October 2nd, 2010 at 04:43 | #18

    thanx sir for good information....

  17. October 8th, 2010 at 03:09 | #19

    jacks :

    iam looking for detailed description of c++ language….. wer is it ??? pls include dat…!!!

    Hey Jacks.. I just started adding complete C++ tutorials. You can start here - http://zarrata.com/durofy/computers/programming/c-tutorial-1-the-basics/

  18. Kundan
    October 19th, 2010 at 23:33 | #20

    thanks, for giving such a good kind of information.

    i realy impressed with that answers..

  19. deepthi
    October 20th, 2010 at 02:41 | #21

    thanks for giving valuable information....

  20. bhavani
    October 23rd, 2010 at 23:38 | #22

    Thanks alot

  21. pooja
    November 2nd, 2010 at 00:45 | #23

    this is wt i want 2 search thanks

  22. Chandhu
    November 28th, 2010 at 14:15 | #24

    Thanks a lot for providing such information keep it up

  23. bharath
    December 4th, 2010 at 09:26 | #25

    dude its really helpful.>...>>

  24. Jasin
    December 9th, 2010 at 10:42 | #26

    Exellent information..
    Thank u sooo much...
    Expecting more....

  25. bhavyateja
    December 13th, 2010 at 03:17 | #27

    @bhuvana
    thank you

  26. bhavyateja
    December 13th, 2010 at 03:21 | #28

    thankyou for helping me like this, because of you i have learnt the difference between c and c++.

  27. chandu
    December 18th, 2010 at 01:09 | #29

    thank u sir, i'm understood what you are said.

  28. sathiya
    December 23rd, 2010 at 05:55 | #30

    thanks......
    my search completed

  29. December 24th, 2010 at 15:56 | #31

    sathiya :: i like that

  30. Amit
    December 30th, 2010 at 11:55 | #32

    Really Awesome ... Thanks a lot boss u made my engineering worth ...At last i came to know the basic difference between these two...........................thanks

  31. January 2nd, 2011 at 00:51 | #33

    @Amit
    Thanks for commenting.. Makes me feel good :)

  32. venky
    January 4th, 2011 at 14:10 | #34

    Thanks for your cooperation for providing me such a great help coz 2morrow is my exam n i need it n i got it..........
    Thanking you.

  33. williams esther
    January 11th, 2011 at 11:51 | #35

    thank you for providing every one of us with such differences btw c and c++...

  34. nandu
    January 18th, 2011 at 23:07 | #36

    thanks a lot man.....very informative ...

  35. saurabh
    January 21st, 2011 at 01:18 | #37

    thank you ....dis is really very helpful ,as all the differences have been explained with clarity,and covers all the important aspect.........

  36. January 21st, 2011 at 01:59 | #38

    Thanks for reading Saurabh :)

  37. January 21st, 2011 at 04:52 | #39

    some of them r telling 'C' is a middle level language.....tell me the correct type of level language....

    • January 22nd, 2011 at 16:54 | #40

      @praveen - I agree there are always mixed opinions about this one. Some even like to call it a high-level language. But there's really no determining factor behind the level of a programming language. Essentially, we're making all the changes at the machine level, right? Now, as we increase the abstraction and move away from the machine-level, the level of the language increases. So, the level is nothing but the level of abstraction. So, most of the languages we use in applications today will have aspects of both machine-level and user-level. The two levels are machine-level & user(real world)-level while high & low levels are relative terms. Although, C is on a lower level of abstraction "relatively"- when compared to C++. Hence, referred to here as low-level.

  38. govindharaj
    January 24th, 2011 at 01:36 | #41

    verry nice.... thanks a lot

  39. bindas
    January 24th, 2011 at 05:47 | #42

    thanq, it was very helpful........

  40. Pranjalee
    January 25th, 2011 at 01:43 | #43

    Thanks a lot Sir!!!
    Its really a very basic thing in software empire.
    One can not point out such smaller but major differences.
    You gave us it as ready made.
    Thanks a lot once again!!!

  41. sandeep
    February 1st, 2011 at 12:55 | #44

    this is realy good one and stick to something i want...thanks for the same...

  42. annie
    February 2nd, 2011 at 11:24 | #45

    its really a very gud differences... it will help the students a lot.. so thanx a lot for helping students....:-)

  43. annie
    February 2nd, 2011 at 11:26 | #46

    gud... keep it up..

  44. teddy
    February 4th, 2011 at 12:06 | #47

    thank u for providin those details..

  45. teddy
    February 4th, 2011 at 12:07 | #48

    it's good..
    expectin more.....

  46. February 14th, 2011 at 01:42 | #49

    Thank you very much..... This is the greatest answer i ever seen.....

  47. February 15th, 2011 at 05:03 | #50

    Thanks for helping complete my assignment.

  48. annu
    February 18th, 2011 at 22:57 | #51

    ans is vry helpful

  49. February 26th, 2011 at 09:17 | #52

    @prabhu Thanks a lot! :)

  50. deepa
    February 28th, 2011 at 13:31 | #53

    thank u so much......for the information..

  51. March 17th, 2011 at 11:27 | #54

    Not a complete list. A couple of other differences:

    C allows void* to be assigned to another type with no warnings.
    C requires the struct keyword when defining a variable of a struct type. C++ automatically "typedefs" structs.
    C has no operator overloading.
    You can omit the return in main() in C.

    There are some others, but it's been a while since I used C.

  52. March 17th, 2011 at 11:29 | #56

    Just thought of another. Actually, this is a side-effect of not having classes, but dynamic allocation in C uses only malloc() and free(), since there is no concept of a constructor or destructor.

  53. Pushpender Singh
    March 19th, 2011 at 00:38 | #57

    thanks it's very helpful :D

  54. Gururaj Shetty
    March 21st, 2011 at 11:35 | #58

    Thank you very much...Exelent answer

  55. April 18th, 2011 at 02:02 | #59

    thnx for ur sharing

  56. chetan dabke
    April 18th, 2011 at 10:36 | #60

    thanx a lot... a well defined and an easier one!!!!

  57. April 25th, 2011 at 11:22 | #61

    I will add possibilities of C++: inheritance and events
    but (10) I think language C suport reference variables

  58. monika
    May 5th, 2011 at 01:58 | #62

    please send us a code to show how c is top down and c++ is bottom up approach v'l b waitin

  59. prashanth
    May 8th, 2011 at 00:36 | #63

    Thanks Dude......................Nice information

  60. Thadeuse
    May 8th, 2011 at 03:55 | #64

    thanks for ur kind information

  61. May 10th, 2011 at 22:42 | #65

    Thank u soooooooooooo much! 10 points are enough for my home work :P

  62. May 14th, 2011 at 02:16 | #66

    different between c$c++

  63. shiva
    May 15th, 2011 at 00:52 | #67

    nice things i got

    @annu

  64. shiva
    May 15th, 2011 at 00:52 | #68

    nice things i got

    @annu

    @deepa

  65. May 17th, 2011 at 14:01 | #69

    good.........

  66. Manu
    May 23rd, 2011 at 07:12 | #70

    thanq very much for ur anwers

  67. Deepthi
    May 27th, 2011 at 05:02 | #71

    Thanq sooo much for ur valuable information :-)

  68. urvisha
    May 31st, 2011 at 00:15 | #72

    thanks for sharing.......but its enough for master level????????????????

  69. TASHI BOY
    June 5th, 2011 at 21:43 | #73

    Very good my friend...
    There is one more difference that C don't have ++ like C++....
    Joking man

  70. krishna kumar
    June 20th, 2011 at 06:31 | #74

    thanks for this valuablr information

  71. CHANDAN RANCHI
    June 30th, 2011 at 14:59 | #75

    he, thanks 4 helping us.....we would b ever thankful 2 u. once again .....THANKS

  72. arun
    July 8th, 2011 at 04:29 | #76

    nice

  73. poovi
    July 9th, 2011 at 08:59 | #77

    thanks for information

  74. poovi
    July 9th, 2011 at 09:02 | #78

    now i have cleared my doubt.

  75. Nitin Sharma
    July 11th, 2011 at 07:03 | #79

    Notes are very helpful for self study and extra knowledge.I will thanks to giver and internet.

  76. Nitin Sharma
    July 11th, 2011 at 07:11 | #80

    My village is Himayoupur (G.B.Nagar). But at this time i am living in ghaziabad finally i will say notes are very helpful for self study and extra knowledge about everything.So for this facility i will thanks to internet service provider and notes provider.

  77. SANKALP SANGLE
    July 13th, 2011 at 11:02 | #81

    can u tell me which was the first version/compiler of c++....urgent!!!!!!!!!!!!!!!!!!!!!

  78. anita s karamudi
    July 14th, 2011 at 06:52 | #82

    good points i got and one more suggestion is....

    c support 32 key words and c++ support 42 key words

  79. July 20th, 2011 at 05:00 | #83

    nice....it's very useful for me...

  80. kanchan
    July 26th, 2011 at 09:50 | #84

    how can we explain top down n boottom up approaches in n c++...

  81. Shailesh Jaiswal
    August 3rd, 2011 at 05:28 | #85

    thanks ..................its very useful for me

  82. sachin
    August 4th, 2011 at 13:15 | #86

    THANKS FOR THE INFO.. IT REALLY HELPED.

  83. rks
    August 4th, 2011 at 21:56 | #87

    Point number 3 is totally wrong bcz c is middle level language and c++ is high level language.
    so plz correct it.

    • August 5th, 2011 at 01:26 | #88

      You probably dint read the complete post. Please see the discussion at the end of the differences.

  84. mayank
    August 6th, 2011 at 12:59 | #89

    thanks a lot u help me very much.

  85. jiban
    August 10th, 2011 at 01:07 | #90

    what is the major difference between C,C++ &java?

  86. bhuvana
    August 13th, 2011 at 07:26 | #91

    thanks a lot am clear now and its very useful

  87. bhuvi
    August 13th, 2011 at 07:30 | #92

    its very useful and this is wat i was looking for

  88. pavan
    August 20th, 2011 at 01:45 | #93

    very thanks for information good

  89. saranya
    August 20th, 2011 at 08:57 | #94

    can u send some programs such as, factorial,prime no,fibonaci
    and can u shortly explain about pointer?

  90. August 20th, 2011 at 11:13 | #95

    saranya :

    can u send some programs such as, factorial,prime no,fibonaci
    and can u shortly explain about pointer?

    Check out the post
    >> http://zarrata.com/durofy/programming/an-introduction-to-pointers-in-c-programming/

  91. August 25th, 2011 at 00:21 | #96

    thanks for sharing......

  92. Vicky Gaur
    August 27th, 2011 at 05:02 | #97

    Thanks.......... a lot

  93. viky
    August 31st, 2011 at 13:07 | #98

    C++ have exception handling where as c dont have!!!

  94. shikha
    September 1st, 2011 at 09:57 | #99

    thanks for the info...... got more than my book...... :)

  95. September 1st, 2011 at 13:08 | #100

    shikha :

    thanks for the info…… got more than my book…… :)

    Great! Moreover, you don't want to read the complete C & C++ text to get such a simple answer ;)

  96. September 1st, 2011 at 13:09 | #101

    viky :

    C++ have exception handling where as c dont have!!!

    Don't know why i forgot that. Have added it as the 11th difference. Thanks!

  97. shweta kumari
    September 2nd, 2011 at 12:09 | #102

    thanx 4 d info......helpful 4 my assignment

  98. Pramod Jain
    September 3rd, 2011 at 08:40 | #103

    I confuse in top down app & bottom up app..................
    Thanks...........

  99. firzan
    September 6th, 2011 at 06:56 | #104

    thanks dude.......!!!!

  100. Amit
    September 7th, 2011 at 09:22 | #105

    Thanks bro.. good answer.

  101. debasis
    September 8th, 2011 at 02:27 | #106

    thanks dude…….!!!!

  102. September 9th, 2011 at 06:42 | #107

    Good Answer. Brother
    Thankz for the information.
    This is enough for my computer science assignment

  103. rohith
    September 12th, 2011 at 01:47 | #108

    thanks and keep updating the information it will be useful for the students like us

  104. AMANDEEP SINGH
    September 12th, 2011 at 11:22 | #109

    THANKS BRO ,
    VERY GOOD ans

  105. insaf
    September 12th, 2011 at 13:49 | #110

    thanx for help.....
    keep it up boss

  106. September 12th, 2011 at 14:09 | #111

    Thank you for the comments! :)

  107. kajol
    September 15th, 2011 at 00:01 | #112

    C is not a client server model while C++ is a client server model. C++ can solve the real world problems while C can't. These are also the differences.

  108. September 15th, 2011 at 05:21 | #113

    it was good....never could read this any one of the books of c or c++..thanks a lot..

  109. Mitchell
    September 15th, 2011 at 11:28 | #114

    You can use functions inside of structs in C via pointers, but I supposed that's not what you really mean, it just sounds slightly misleading to me.

    Also, cin and cout are part of the std namespace, and they're not functions. They're almost like "pipes" in a sense. What you're doing is essentially bit shifting (<> are bit shift operators) data into and out of them. As well, C++ still supports use of printf and scanf, so your std.cin and std.cout are by no means exclusive in their duties.

    All in all a good article, just a couple nitpicks.

  110. September 18th, 2011 at 01:35 | #115

    Thenxxxx alot for the basic informations..........

  111. aswin
    September 19th, 2011 at 11:40 | #116

    lost my interview just bcoz of this ques....

  112. mayank
    September 20th, 2011 at 10:38 | #117

    really given in a lucid way........is extremely easy to comprehend

  113. September 20th, 2011 at 18:02 | #118

    @Mitchell - Thank you for pointing it out. Will add an update to the post. :)

  114. September 20th, 2011 at 18:03 | #119

    mayank :

    really given in a lucid way……..is extremely easy to comprehend

    Thank You Mayank :)

  115. priya
    September 21st, 2011 at 10:14 | #120

    thanks for giving the basic concepts

  116. September 21st, 2011 at 19:13 | #121

    priya :

    thanks for giving the basic concepts

    Thank you for reading :)

  117. HARSH
    September 22nd, 2011 at 08:22 | #122

    THANKS FOR MORE INFO I USE IN MY EXAME

  118. himanshu yadav
    September 23rd, 2011 at 09:58 | #123

    thnaks dude it's found very help ful for me....once again thanks

  119. Gulshan Arya
    September 27th, 2011 at 23:32 | #124

    Thanx a lot ,,,,,,,
    This can be effective in my Campus....

  120. NAVEENA
    September 28th, 2011 at 10:59 | #125

    thanks a lot for this information

  121. September 28th, 2011 at 23:58 | #126

    @Harsh;Himanshu;Gulshan;Naveena - Thanks for the comments! :)

  122. vishal suryavanshi
    September 30th, 2011 at 19:08 | #127

    i dnt understdd top down & bottom up approach so plzzz help me sir...

  123. Alex D
    October 12th, 2011 at 20:54 | #128

    Wait so can I learn C first and then move on to C++... will that work? Because I have started watching video tutorials about C and I am learning a lot but will I be able to do those things in C++?
    Please reply!
    Thanks

  124. October 12th, 2011 at 23:25 | #129

    Alex D :

    Wait so can I learn C first and then move on to C++... will that work? Because I have started watching video tutorials about C and I am learning a lot but will I be able to do those things in C++?
    Please reply!
    Thanks

    That's the only way it works. I hate to call C a "programming language". It is more like a "programming prerequisite". C is to programming what Algebra is to Calculus.

  125. mahesh
    October 15th, 2011 at 11:57 | #130

    thanx dude i got 10 marks in exam

  126. Bhumi Faldu
    October 15th, 2011 at 19:37 | #131

    thank u very much 4 this information.........

  127. sagar
    October 16th, 2011 at 20:06 | #132

    thanx

  128. rajesh
    October 30th, 2011 at 08:30 | #133

    txs it really help full for me......

  129. October 31st, 2011 at 00:19 | #134

    nice and helpfull

  130. priya
    November 2nd, 2011 at 06:29 | #135

    poda panni parathesi naiye un inforamtion na neeye vatchuko da lusu pu............

  131. November 2nd, 2011 at 10:48 | #136

    thks very much

  132. ashish kumar rawat
    November 4th, 2011 at 09:00 | #137

    thanx to provide me imp knowledge

  133. Janardhan Reddy
    November 4th, 2011 at 14:40 | #138

    Pls give me aprogram which can be compiled in c and does not compiled in c++??????

  134. November 6th, 2011 at 12:23 | #139

    its too favour 2 me........

  135. November 7th, 2011 at 04:41 | #140

    Thnx! Coming from Java, now I know it's C++ I should learn. =)

  136. shuhaibvalapuram
    November 9th, 2011 at 15:23 | #141

    12.Main doesn't Provide return 0 Automatically in c,but in c++ it is..
    13.No Boolean type in C,but it is present in c++
    14.We must declare functions before use in c++,but c does't require it.
    15.presence of keyword 'new' instead malloc in c

  137. anoushka
    November 10th, 2011 at 22:28 | #142

    really really helpful..thnx..:)

  138. Lal Bahadur Singh
    November 11th, 2011 at 01:07 | #143

    Thanks for information rishab,it's really working out.......

  139. November 11th, 2011 at 01:55 | #144

    MaTachi :

    Thnx! Coming from Java, now I know it's C++ I should learn. =)

    Hey! You got a nice blog :)

  140. November 11th, 2011 at 01:55 | #145

    Lal Bahadur Singh :

    Thanks for information rishab,it's really working out.......

    Thank You :)

  141. November 14th, 2011 at 06:09 | #146

    THANKS SIR! I HAVE GAIN A GREAT KNOWLEDGE AFTER STUDY UR SITE, ABOUT THE C**AND C DIFF......

  142. K
    November 14th, 2011 at 07:36 | #147

    GOOD JOB

  143. Mayank
    November 16th, 2011 at 07:45 | #148

    Thanks for better E-Information tanks to all of u who make it...........Mayank

  144. vinny aggarwal
    November 30th, 2011 at 07:18 | #149

    what is the differnce between c++ and other structured languages?
    plz
    do reply...

    thank you!

  145. brindha
    December 1st, 2011 at 05:19 | #150

    thanks for ur good info

  146. Shiv mani sharma
    December 3rd, 2011 at 01:25 | #151

    Really very helpful,.,.,

  147. khushboo gangal
    December 10th, 2011 at 08:57 | #152

    thanks a lot for this information........

  148. Sachin Vatsal
    December 14th, 2011 at 02:53 | #153

    Thanks. for special points , I am very satisfied by these 10 points and these are very help full for me

  149. Rajeshwari
    December 17th, 2011 at 05:49 | #154

    Thanx......boss.. this difference is very easy to store on my mind, its never forget to me.. short answers nice keep it up boss... and also keep this typ of answers always it will help full for students..like me

  150. December 17th, 2011 at 06:02 | #155

    Thax...........

  151. December 21st, 2011 at 04:17 | #156

    thanks for this informative post. It helps me a lot to understand some differences both in c and c++.

  152. Rijhal
    December 23rd, 2011 at 02:45 | #157

    @kajol

    can u give some example for it? how cpp is having client server model?

  153. Ankush
    January 5th, 2012 at 07:42 | #158

    tNx a LoT fOr pErfeCt inFOrmAtiOn

  154. anirudh
    January 8th, 2012 at 13:02 | #159

    thanq so much........ :-)

  155. swapna
    January 12th, 2012 at 11:31 | #160

    useful information.. thanks

  156. sikander mirza
    January 14th, 2012 at 15:44 | #161

    tnx a lot 4 in4mtion................................

  157. Pooja
    January 17th, 2012 at 16:11 | #162

    Thanks a ton!!

  158. Aleem
    January 18th, 2012 at 03:28 | #163

    Hehhh can yu please provide me the complete information with explanation on the main OOPS principles..please ya
    And the above information is perfct..thank yu ya..

  159. January 18th, 2012 at 08:25 | #164

    Aleem :

    Hehhh can yu please provide me the complete information with explanation on the main OOPS principles..please ya
    And the above information is perfct..thank yu ya..

    http://www.durofy.com/programming/the-basics-of-object-oriented-programming/

  160. Ila
    January 23rd, 2012 at 15:18 | #165

    thannxxx a lot... its really useful...

  161. manoj
    January 26th, 2012 at 17:28 | #166

    nice!!!!!!!!!!

  162. nature
    January 30th, 2012 at 16:05 | #167

    vry usefullllllllll!!!!!!!!!!!

  163. Rajkumar
    February 1st, 2012 at 01:13 | #168

    What are the things are not possible in c when cOmpaRed to c. Pls tell me..
    Why the c++ is better than c??

  164. anil
    February 3rd, 2012 at 12:06 | #169

    very good info.

  165. swati
    February 6th, 2012 at 05:21 | #170

    Nicely written.....
    really useful !!!!!!! i'l use in my assignment , preparing today...... :)

  166. kodeeswaran
    February 17th, 2012 at 15:08 | #171

    ITs very helpful for uplift my Programming Language MY own thank u for this usual info

  167. atir
    February 20th, 2012 at 11:13 | #172

    very well written........
    this could be very useful for interview

  168. Ashish
    February 22nd, 2012 at 06:27 | #173

    What is the need of C++?

  169. shivani
    February 24th, 2012 at 13:53 | #174

    but most of the people tell me C language is machine language

  170. shivani
    February 24th, 2012 at 14:02 | #175

    shivani :but most of the people tell me C language is machine language</blockquot

  171. shivani
    February 24th, 2012 at 14:13 | #176

    sorry sir it is type by mistaken

  172. Jonas Kulla
    February 24th, 2012 at 19:35 | #177

    In 7., what does "functions insides structures" actually mean? I mean, I can use function pointers inside of structs perfectly fine. Do you mean functions that can access the structs data automatically?

    I also don't get 10.
    When I do

    int a = 4;
    int *b = &a;

    isn't this what you described as "using the same memory by different names"?

  173. Hasib
    February 25th, 2012 at 00:46 | #178

    Really nice discussion..it is helpful for opening .......

  174. venkat
    February 28th, 2012 at 09:38 | #179

    it's very useful i will be beck again

  175. vikas rana
    February 28th, 2012 at 18:55 | #180

    hi shivani,i wanna tell you c is middle language........

  176. vikas rana
    February 28th, 2012 at 19:02 | #181

    shivani can you tell me what is the difference between if,if else,nested if,and else if ladder statement...........

  177. sudha
    March 6th, 2012 at 16:39 | #182

    thanks.................

  178. Shinny
    March 8th, 2012 at 18:07 | #183

    thank for providing this information.It is very useful

  179. Shinny
    March 8th, 2012 at 18:10 | #184

    hiii can you please tell me the difference between while and for loop.why we use this both when they are peforming the same task and also where to use while and where to use for loop

  180. zereoin
    March 16th, 2012 at 11:40 | #185

    Mitchell :
    You can use functions inside of structs in C via pointers, but I supposed that's not what you really mean, it just sounds slightly misleading to me.
    Also, cin and cout are part of the std namespace, and they're not functions. They're almost like "pipes" in a sense. What you're doing is essentially bit shifting (<> are bit shift operators) data into and out of them. As well, C++ still supports use of printf and scanf, so your std.cin and std.cout are by no means exclusive in their duties.
    All in all a good article, just a couple nitpicks.

    You are not bit shifting. Bit shifting changes values it does not move variables.

    The operators are overloaded and called "insertion operators" in the iostream context. I'm not sure if you just wanted to seem smart or simply have a poor mental model but you are wrong and now everybody who read your addendum is also misinformed.
    http://www.cplusplus.com/reference/iostream/ostream/operator<</

  181. Ankita agrawal
    March 17th, 2012 at 17:34 | #186

    Will u plz some example of c++?
    @kajol

  182. prachi
    March 18th, 2012 at 08:32 | #187

    thanks....very well explained.......

  183. mukesh kumar
    March 19th, 2012 at 13:36 | #188

    thank u so much......for the information..

  184. Suman sidh
    March 22nd, 2012 at 18:59 | #189

    Thanks...for help...very well explained...

  185. Richard.M
    March 24th, 2012 at 10:23 | #190

    wonderful ! This is wat i excepted,Thank you
    -Richard.M

  186. kalpa
    March 26th, 2012 at 14:52 | #191

    thanx yar

  187. junaid
    March 28th, 2012 at 05:41 | #192

    infomation zyada karyn

  188. ASHOK
    March 30th, 2012 at 04:56 | #193

    thank you very much

  189. rahul rai
    March 30th, 2012 at 05:02 | #194

    thanks it really very nice

  190. Manoj
    April 1st, 2012 at 09:11 | #195

    Thanks for giving the basic diff..

  191. irshad
    April 3rd, 2012 at 09:38 | #196

    thanks yaar..

  192. pwn jha
    April 4th, 2012 at 12:25 | #197

    with this all my mistake has cleared
    its so easy and good

  193. Ank
    April 4th, 2012 at 16:16 | #198

    hey i need to convert a C code to C++ or JAVA
    could somebody help??
    i can post the code.

  194. April 5th, 2012 at 02:51 | #199

    Ank :

    hey i need to convert a C code to C++ or JAVA
    could somebody help??
    i can post the code.

    Hello Ank, You can use this tool to convert C code to C++ : http://sourceforge.net/projects/ctocpp/

  195. pranav
    April 8th, 2012 at 16:02 | #200

    This is really very good solution .thanks.......

  196. pramod
    April 9th, 2012 at 06:05 | #201

    it is more helpful for interview question

  197. April 10th, 2012 at 18:44 | #202

    helllo....... thanx for this information ....it has a clear differences between the c n c++ in a simple lang......

  198. jinendra khane
    April 15th, 2012 at 12:07 | #203

    thanx...4 providing.bt there r again many diffrances remains like in c++ default main is int type while in c its void.

  199. April 17th, 2012 at 10:56 | #204

    Thats to the point!! thats what i was searching for.....good job!!

  200. April 17th, 2012 at 14:46 | #205

    thanks
    sir,
    because today i undusstand the actual difference between c & c++

  201. Ashwani sheoran
    April 18th, 2012 at 23:20 | #206

    thanks for providing diffrences

  202. Renuka
    May 7th, 2012 at 17:59 | #207

    Well explained....... thank u very much!!

  203. Akash
    May 8th, 2012 at 20:06 | #208

    Hey Rishabh,
    I am new to C/C++ environment. Can you tell me the difference between the C/C++ IDEs/Compilers also what if I use C++ to compile code for C and vice versa? What difference will it make ?

  204. random
    May 13th, 2012 at 03:23 | #209

    You can use multiple variables(pointers) to point into a single memory location in C. You use it especially when implementing linked lists.

  205. rajat jain
    May 16th, 2012 at 18:08 | #210

    nicely explained ....................thanx

  206. Ahuja
    May 17th, 2012 at 06:54 | #211

    What is NAMESPACE

  207. Surbhi
    May 17th, 2012 at 18:47 | #212

    properly nd clearly explained.. nw m prepared 4 2mrrwz VIVA :D :)

  208. Krunal
    May 18th, 2012 at 01:06 | #213

    Thanks

  1. June 8th, 2010 at 12:00 | #1
  2. July 28th, 2010 at 15:01 | #2
  3. October 8th, 2010 at 02:13 | #3
  4. September 5th, 2011 at 05:43 | #4