Question:
Questions about C++, C#, and C?
1970-01-01 00:00:00 UTC
Questions about C++, C#, and C?
Ten answers:
Majestic Computing
2010-07-04 19:53:15 UTC
When somebody talks about C, it is its own language, different from C++ and C#. C++ is essentially the same as C but allows for object oriented programming. C# and C++ can both be used game developing. C# game developing is down by "indie" developers and usually through the XNA framework (google it, it allows you to make games very fast and easily with C#). C++ is used more often because it gives you more control over memory management and can run a little bit faster, but it takes a lot longer to develop with it.
Shadow Wolf
2010-07-04 20:53:19 UTC
What C stands for is it was actually the 3rd generation of a series of developmental languages. Don't laugh to much, but they were labeled A, B, and finally C. If you dig (Google and do a lot of searching), you can find compilers for A and B though they are mostly for historical and amusement purposes.



Originally C, and A and B before that, were created for developing operating systems. The idea was to create an easily portable compiler that was also easy to implement in assembly language to help bootstrap new computer operating systems. As it turns out, C is an ideal programming language for a lot of things.because it isn't assembly language, but it can create compiled programs that are very nearly as efficient as assembly language. The simplicity of the language and it's portability made it the first cross platform programming languages.



I should probably include a historical reference to K&R C as it is the older version of C before the C standard was developed. There has been several versions in just the C family. Even in it's K&R form, it was then the most portable programming language available. You can still occasionally find source code written in K&R C and it may cause some problems with modern compilers while some of the older compilers may not have trouble with it. The syntax differences will look a bit strange to anyone who only knows the modern C standard syntax.



Next in history after C is C++. This is an object oriented version of C on steroids. It is best described as a super set of C because so much was added while still being compatible with C. If you know C, then you already know the basics of C++. With some study, you can add the new features and enhancements of C++ and it's object oriented additions.



There should also probably be another historical side note for objective C. An object oriented version of C that isn't C++. Not nearly as popular as C++ or C, you'll occasionally see some questions pop up in Yahoo answers. Objective C is mostly limited to *nix/Linux and possibly Gnu compilers.



Finally, you have C# This is actually a restricted version of C++. I've had friends of mine describe C# as being C++ without the ability to do a lot of harm to the operating system. Microsoft decided that while C++ was good, there was to many ways for programmers to make serious mistakes. The result was C#. Many of the "problems" with C++ have been removed from the programming language while still retaining the object oriented programming feature.



C, C++ and C# can all be used as game programming languages. Your choice may depend on what platform you develop your game for. C# is strictly limited to Microsoft and few are jumping on the bandwagon since you can do the same things with C++ without the restrictions of C#. As far as I know, the only C# compilers are available from Microsoft. C is the base programming language used for Linux (most of the operating system) and newer things for Linux may be written in C++.



If you need more information I suggest Wiki and Google. I've included enough general info here that should enable you to dig a lot deeper if you want to know more.



Shadow Wolf
2016-04-12 02:06:56 UTC
Gender Bender: Ouran HighSchool Host Club Hana Kimi Yaoi: Seven Days
vishnu s
2010-07-05 03:13:50 UTC
hi dude..



u r more curious on wat to use,,



"c" is a basic high level language ,,



only with c u can do the things ,ie u can write any programes....



but c++ or c# are easy to write in ghrapic's ..that we won't learn , how to use it



lets check the link ,which helped me...



http://getthestudentways.blogspot.com/search/label/C%2FC%2B%2BPROGRRAMS



to revive basic's ...



http://getthestudentways.blogspot.com/search/label/C%20PROGRRAMS
Big Ben
2010-07-04 19:50:58 UTC
C came first, C++ expanded upon C.



C# was invented by Microsoft, it's kind of cross between C++ and Visual Basic. It's used for Microsoft products like Zune, Xbox360, Windows, etc.



EDIT: Yes, C# would be good for indie game development, if you wanted to get your game on xbox360 to show your friends. However, it's not as portable as C++ is.
BobberKnob
2010-07-04 20:56:01 UTC
C/C++ are usually looked at as one language, as C++ is just C with added functionality.



Basically, C# is more of a direct rip-off of java at first. Now, Microsoft has added so much more functionality over the years, making C# much more closely related to C++ than Java. C# still shares almost all keywords with Java, but has the ability to work with memory and O/S's directly, where Java is solely dependent on some kind of JVM.
That does not compute
2010-07-04 20:05:49 UTC
C was the original language many years ago.



C++ added object oriented capability to C and greatly complicated the language.



C# is like C++ only easier to program with, the same way Java is a easy object oriented language compared to C++. There are less computery technical problems to deal with while writing programs in C#. Problems which are really a huge waste of time to keep dealing with over and over so the C# language solves them for you. Even if you need that type of technical control you can still slip C, C++ and even Assembler code as well as other languages into your programs C# code.



C# is part of what Microsoft refers to as .NET.

.NET is nothing but a bunch of libraries written by Microsoft to save you time coding. You can call the .NET code to do a task instead of painstakingly writing your own library. To be fair C++ does have it's own libraries, but it's still harder to code in.



C# is ok for game development. Unless you are making complex games like professional game studios do. Games like Doom3, Crysis, Command and Conquer, etc etc. You could easily pull off a sissy game like Guitar Hero though since there is basically no logic in the game lol
Me M
2010-07-04 20:12:50 UTC
C is a programming language invented in the early 70's ( 1972, if I remember correctly). They named it C because it was developed after a language named B. I do not know if C was based off B or if it just came after B though. Anyways, after C was released, C++ was created. C++ is very similar to C, but adds some critical new features that allows for an entirely different style of programming. C++ is sometimes considered to be a super-set of C because, with a couple rare exceptions, C is basically included as a subset of C++ and can be compiled by a C++ compiler. In C and C++, programmers use "++" on a variable to increase its value by 1. So the developers named C++ by that name because it was based off C, but had something added to it. C# (pronounced C Sharp) was developed by Microsoft and is primarily used with their .NET framework. That makes it fairly easy for programmers to write applications for Windows based computers. C# is also used for some apps on the XBox. C# generally does not have the performance that C++ has, so developers wouldn't want to make complex games and programs out of it. However, it has decent performance and it is much easier to use when developing programs. It can also be used with ASP.NET to create web apps and pages. If I had to guess why C# was named as it is, I would guess it would be to play off the existing C name. Maybe they also wanted to say it was a "sharp" language.... although, that would be a bad pun.
Carl
2010-07-04 20:07:58 UTC
Two college professors (Kernigan and Ritchie) set out to develop a programming language. Their first attempt they call A. They made some improvements and came up with B. They tinkered with it some more and called that C. They liked how it worked and developed it more fully, and other programmers started using it.

That was fine for several years, but as computers become more powerful and operating systems became more complex, they wanted to put in more advanced features to support object oriented programming (OOP). This they called C++, because it was basically still C but with added features.

With advances in the internet, programming languages like Java become popular to design web pages and embedded applications. Many programmers liked the OOP features of C++ and some features of Java, so they came up with C# that is a mix of C++, Java, and Visual Basic.

If you can find a C compiler somewhere, you can use it to write programs for a DOS system, or Windows, or Linux, or Unix, or just about any platform. It gets a little messy working with Windows, and C++ was designed interface with Windows more easily. I think from Windows 95 and on almost all of Windows itself was written in C++.

C# has features that will limit how much damage a defective program can do. It is practically impossible for a program written in C# to crash a computer, but all too easy to do if it was written in C or C++.
2010-07-04 20:36:19 UTC
There are jokes about what C stands for. The letter after B? Maybe. Or the second letter in the name BCPL (another language)? Also maybe. You'd have to ask Kernigan and Ritchie what they were thinking when they named it.



C is totally not object oriented. C++ is partially object oriented. C# is totally objective - even scalar variables (plain old variables) are objects.



When someone talks about C it depends on the context and the person. I usually say "C-ish language" or "dialect of C" if I mean not "C" itself.



Video game development? If you're willing to develop for only Windows and Linux. Dot net (C# is a dot net language) isn't universal. C++ is - you can write for just about any computer currently being made in C++. Or Java (the sole reason for Java is portability). Unless you mean video gaming on the web - then you might want to use PHP/Javascript. (Javascript has the same relationship to Java as coffee colored paint has to a coffee bean - some letters in the name.)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...