C & c++

Discussion in 'Programming' started by Amitoops, Jul 25, 2010.

  1. #1
    which one is better language at the time of placement and which one easy to get command over them.
     
    Amitoops, Jul 25, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    C and C++ are very similar, but C++ is undoubtedly the better language because it offers OO which makes programming a lot more organized and sufficient.
     
    Rainulf, Jul 26, 2010 IP
  3. wakil786

    wakil786 Well-Known Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    106
    #3
    yes definately c++ is better than c...
    don't know about placement coz i m still learning c++
     
    wakil786, Jul 26, 2010 IP
  4. lahsiv

    lahsiv Well-Known Member

    Messages:
    245
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    If you know how to play with logic then no matters to you about c or c++
     
    lahsiv, Jul 26, 2010 IP
  5. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You are comparing apples to oranges here. Maybe 10+ years ago when these two languages were competing in the same field this was the case - not any more. I've coded both since I was a kid and I still do. I use C like I would have used Assembly when I was a kid - to code low level sockets and speed intensive libraries (most DLL's in windows are coded in C). Up until a year ago, I was coding massive amounts of C++ for windows based apps... until I moved over to C#.

    Also, if OO is truly the holy grail of languages and thats the factor that makes it 'better'. Why aren't we all using Eiffel or Smalltalk? instead... PHP, Java and C# command massive followings despite the fact that people continue to code quite a bit of procedural code - just mashed together to make it look OO.
     
    Deacalion, Jul 26, 2010 IP
  6. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Once again, asking what language is 'better' is silly. What are you trying to accomplish? tell me that and I will tell you what language is better suited.
    This question is akin to asking "what is the best tool?"... would you use a table saw to drill a hole?

    C would be the easier, it's a very basic language. Almost all of it's functionality comes from external libraries, the core is as basic as it gets.
     
    Deacalion, Jul 26, 2010 IP
  7. mimo91

    mimo91 Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    in my opinion C++ is better than C in the system of output and input and in C++ you can use C without synthax error
     
    mimo91, Jul 28, 2010 IP
  8. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #8
    Correct me if I'm wrong but C++ is an extension of C, so pretty much any valid C source will compile and run on a C++ compiler, that's why I said C++ is better. =/ Not to mention it has bigger library collection, stronger typing, blablabla. There's just whole lot advantage in C++ man. But really, that's just my opinion, I'm not trying to pick a fight here..
     
    Rainulf, Jul 28, 2010 IP
  9. Harris21

    Harris21 Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    As there is lot of features present in C++ like
    • abstraction
    • encapsulation
    • inheritence
    • polymorphism
    • dynamic binding

    These all are easy to understand and to use.
    Even our data that is very critical, is also very safe in C++ over C as data members are bound in a class and only function that are member of the class can access only.

    To learn about C++, got through below link.
    http://www.boundscheck.com/category/knowledge-base/cpp/

    regards
    harris
     
    Harris21, Aug 2, 2010 IP
  10. vgupta80

    vgupta80 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    For placement purpose better learn C++ ... C involves pure logic. There is a little to learn from programming perspective in C , but a lot from problem solving perspective. But in C++ you can always tell few of the basic concepts like polymorphism , encapsulation , inheritance etc which will help you clear placement interview. It'll take roughly 3-4 days to brush up these concepts. But you will not become a programmer in 3-4 days :)
     
    vgupta80, Aug 13, 2010 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #11
    Since I agree with Linus Torvalds, I'll just quote him:
    He also says anything you can do in C++, you can do it in C. True.
     
    drhowarddrfine, Aug 13, 2010 IP
  12. snow

    snow Member

    Messages:
    208
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #12
    C++ is a better one as it provide security of data through its object oriented concepts.
     
    snow, Aug 13, 2010 IP
  13. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #13
    C is a tad faster, if you don't care that much, go with C++, it has better memory management.
     
    Kaizoku, Aug 19, 2010 IP
  14. StevenLuck

    StevenLuck Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I believe, though C++ is the extension of C, C++ is better, with its advantage in Object Oriented Programming :D
     
    StevenLuck, Aug 19, 2010 IP
  15. zeusarvin

    zeusarvin Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    it think C++ is better because it is the upgraded version of C
     
    zeusarvin, Aug 19, 2010 IP
  16. anjalisharma

    anjalisharma Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    C++ is better because this is object oriented language and C is procedural language.but basic is same(logic).
     
    anjalisharma, Nov 16, 2010 IP
  17. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #17
    This topic should be closed. The replies are becoming increasingly more inane, just for the sake of upping ones post count. Ugh.
     
    Deacalion, Nov 17, 2010 IP
  18. hassanjawed

    hassanjawed Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    C++ is probably the better one but first learn structure programming the n start OOP.
     
    hassanjawed, Nov 26, 2010 IP
  19. gilzar

    gilzar Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    id say c++ also over c
     
    gilzar, Nov 26, 2010 IP
  20. Mike Rader

    Mike Rader Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I would recommend you to read about OOP concepts. If your project needs them, then go for C++. Otherwise if you just want a small program, then C is enough. However the kind of program - domain also plays a significant role on the language you choose in general. Also might be very project specific requirements which might be done only in certain set of languages. Always understand what you want, and then choose your language. If you do it in the other way, you may have to spend too much time in solving problems that are already being solved or primitives of some other programming language. I know my answer is not specific to C/C++, but take it as a guideline for any language.
     
    Mike Rader, Nov 27, 2010 IP