C programming finds use in performance-oriented computing. If you care more about functionality than about performance, Java and C# are the programming language of choice. If you want to write more manageable code with a little performance trade-off, you can use C++ to write your software. However, you can still find better performance with C++ than with Java or C#.
If you are writing computer games, C and C++ should be your programming languages of choice because of the performance. If you write your games in Java and C#, gamers playing your game would require lots of processing power unless you are building something that is not heavy on graphics and processing.
BTW, if you have been following the developments in Java, most of them are to simplify the development of business applications. Enterprise Java technologies help in making your application more scalable, more reliable, and more secure. Although Java does have support for 3D graphics, through JOGL, and audio, through features in Java SE, what you do with Java comes at a performance cost because Java performs checking on array bounds, data type size limits, and overflow checks. If you write your code in C or C++, you can write your code without performing any of the checks if you decide that your code does not need them, such as if your application works with values that would not cause overflows or go beyond the limits of a data type. If you do, however, want to perform checks for data type size limits, operator overflow checks, and array bounds.
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Difference Between C, C++ And C#?
Started by H R, Nov 18 2004 08:10 AM
44 replies to this topic
#42 Guest_Haydiis_*
Posted 08 December 2011 - 10:35 PM
So if I were to start out with a programming language (understand I know nothing of any language), which would you recommend (take into consideration which one is mostly used now and day), C#, C++, or Java? If I were to learn C++ would I basically know C# or how close are they together and stuff?
#43 Guest_Zotilu_*
Posted 18 December 2011 - 06:13 AM
Haydiis, on 08 December 2011 - 10:35 PM, said:
So if I were to start out with a programming language (understand I know nothing of any language), which would you recommend (take into consideration which one is mostly used now and day), C#, C++, or Java? If I were to learn C++ would I basically know C# or how close are they together and stuff?
To learn a language that's widely used is not the actual case, but rather to choose a language that fits your particular interests, including language syntax and what that particular language is optimal for (and perhaps capable of) employing.
For example, some like languages that are less systematic and are influenced less by the original assembly code and more by an actual, humane language (such as English); such case would be Perl, who inherits so many words from the English language that some have even created poems using its syntax.
Others like a more static and raw language type such as that of C that works closer to the metal (phrase for saying it runs almost alongside the computer's hardware).
But, cosmetic features aside, it all depends on what you plan on developing and how well you adjust to new things.
I first learned a language called Lua, a simple language often used to extend programs written in other languages like C as a language for extending the base program's capabilities (in other words, modding), which I used to create several modifications for a game I played.
Generally, choosing a language that has an extensive community will always benefit you in ways languages that don't, won't, due to the fact that the community can offer you help when you need it and maybe form a team with you to create a project.
The game development community often praises languages like C and C++ for their raw performance and portability, although they can be very hard to learn for a beginner with no background experience. Just keep in mind that you aren't limited to just C and C++ just because they receive alot of praise; languages like Python, Visual Basic and Lua are often better choices for first-timers due to their simpler syntax and extensive capabilities(though each person varies in tastes and capabilites).
For macro/utility development, any language is suitable provided it's compatible with the major operating systems. A common choice is Java and Python, but most languages are suitable for such.
(sorry if I derailed my post ... I tend to do that :/ )
All in all, it just depends on what kind of person you are.
My personal recommendation is to do a bit of research. Ask questions on programmers' forums, visit languages' home pages and get a grasp of how things work and try to find a language that suits your tastes and interests.
As for the original question, C# is more like Java than anything. Chances are if you know Java, you probably know C# aswell.
C++ could be considered the black sheep of the three. I don't know much about it, but it's unlike C# and Java.
#44 Guest_Thormod Nordahl_*
Posted 03 February 2012 - 06:01 PM
The way I see it (or: "Hello World" according to yours truly.)
I use C (ANSI C) when programming PIC micro controllers ( not the "hobby versions" Arduino and Netduino - which are great products). Wish I didn't have to use C cuz the compiler keeps protesting when I throw in C++ and C# stuff.
I would use C++ if I made a living programming.
I pretty much use VB 2010 Express for everything else, but still write my .dll's in DevX C++. ( Gave up assembler eons ago.)
So, what is the diff for me? Personal preference.
Neither language is "Hard" to learn - but its har work to become good in any of them.
Tom
I use C (ANSI C) when programming PIC micro controllers ( not the "hobby versions" Arduino and Netduino - which are great products). Wish I didn't have to use C cuz the compiler keeps protesting when I throw in C++ and C# stuff.
I would use C++ if I made a living programming.
I pretty much use VB 2010 Express for everything else, but still write my .dll's in DevX C++. ( Gave up assembler eons ago.)
So, what is the diff for me? Personal preference.
Neither language is "Hard" to learn - but its har work to become good in any of them.
Tom
#45
Posted Today, 08:13 AM
The way I see it (and this is only my feeling about it, I am no expert), is that C++ attempts to increment on C functionality without costing too much efficiency overhead. In other words, C++ will compile C code without losing efficiency. On the other hand, C# is more of a modern-day language, simplified at the cost of efficiency.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














