Before talking about C and it’s iterations, we need to first understand the concept of low level of high level programming. In a nutshell, low level programming is the deepest you can go in terms of any technical aspects as it has a close interaction with the physical hardware of a system, for example, memory management. A high level program however, doesn’t have to deal with any of these aspects, making it far easier to use for beginners and much less complex overall.
What’s the difference between C, C++ and C#?
C++ also has the added benefit of allowing the use of objects, a feature not available in C. C++ is primarily used for video game development and GUI’s.
Finally, we come to C#, the most recent iteration of C. Developed by Microsoft in 2000, C# is higher level language compared to it’s counterparts. C# is primarily used for web application, web development and video games. It bares a striking similarity to Java in it’s functionality and syntax, I’m sure it’s just a coincidence..
Basic C, C++ and C# Example: Hello World x 10
#C
for (int i = 0; i < 10; i++) {
printf("Hello\n");
}
#C++
for (int i = 0; i < 10; ++i)
cout << "Hello\n";
#C#
for (int i = 0; i < 10; i++)
{
print("Hello World!
}
In comparison to other programming languages, C# was by far the easiest and simplest to write this code for. For comparison, this site will include many other examples of the ‘Hello World x10’ script, written in different languages. Obviously Python will still be the easiest to code with, but C# is my personal winner here.
“The code you write makes you a programmer. The code you delete makes you a good one. The code you don’t have to write makes you a great one.” – Mario Fusco.