Sunday, July 26, 2009

Should I learn C or C++?

I can already program in C#, Python etc

Should I learn C or C++?
Hi,


go for C++ more people use it. hope this helps you.
Reply:It depends on what field in computer programming you liked the most. If you program for efficiency, learning C is great. Embedded programming requires deep knowledge in C.





Familiarization or even mastery in C will make a big difference in learning C++ or even Java since these languages copied a lot of its syntax from C. One more thing, C is older than C++ though C++ as we know is an enhanced C. Learning C before C++ is like knowing Basic Algebra before taking up Geometry.
Reply:C and C++ are each used in different types of application areas. C would typically be used for embedded applications, where C++ would be used for applications that would run on a more general purpose computer.





It all depends on which type of thing you prefer to programme. If you prefer to programme firmware, choose C. If you prefer 'applications' that run on more powerful hardware, choose C++. Both will continued to be used for their respective strengths.
Reply:Yes. C++ is a superset of C. Actually it has moved beyond that somewhat but very few people with knowledge of both will suggest they are different languages. I learned C originally because my school was still looking for an affordable C++ compiler. I find myself dipping into both tool chests as I need them.





I suppose the above suggests I think C is more important or "better" than C++. It isn't. There are places where simple compact code is better and places where objects and namespaces can do the job. The only difference between I can see between those of us who learned C first and those who learned C++ first is the latter will sometimes use the same libraries, concepts and codes we call C and call them C++. If the code isn't different then it will get the job done whatever you call it.





I feel like I should say something about C# however it is dot Net technology and my recent experiences with Mono, the Linux port of dot Net technology have made me very angry. Any comparison I make will be very biased, therefore unreliable.


No comments:

Post a Comment