Jump to content




What about C ?


  • You cannot reply to this topic
21 replies to this topic

#1 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 01 December 2012 - 05:27 AM

Hi everyone !
I want to ask you why no-one talk about the programming language C ? It's the first language I have learned (I'm way better with Lua) and I want to know what are the differences between C++; C# and C ?
Thanks you

#2 billysback

  • Members
  • 569 posts

Posted 01 December 2012 - 05:30 AM

I'm pretty sure C# has little or nothing to do with C/C++ however C++ is (I believe) an extended and enchanced version of C, that's why more people use C++ and is also why people often suggest to learn C before you go to C++.

#3 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 01 December 2012 - 05:34 AM

View Postbillysback, on 01 December 2012 - 05:30 AM, said:

I'm pretty sure C# has little or nothing to do with C/C++ however C++ is (I believe) an extended and enchanced version of C, that's why more people use C++ and is also why people often suggest to learn C before you go to C++.
The man who have teach me C said that C++, C and C# have nothing to do together but I want to know why you advice to people to learn C++ or C# instead of C ?

#4 1v2

  • Members
  • 89 posts
  • LocationAmsterdam

Posted 01 December 2012 - 05:40 AM

The major difference between C and C++ is that C++ allows OOP. You will see that C is used at Kernel level software, drivers for hardware devices while C++ is used at application and server development.

#5 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 01 December 2012 - 06:25 AM

View Post1v2l3a4m5e6n, on 01 December 2012 - 05:40 AM, said:

The major difference between C and C++ is that C++ allows OOP. You will see that C is used at Kernel level software, drivers for hardware devices while C++ is used at application and server development.
Ok thanks you :) so I think I'll have to learn C++ :P

#6 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 01 December 2012 - 06:36 AM

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax

#7 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 01 December 2012 - 08:26 AM

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.

#8 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 01 December 2012 - 12:55 PM

View Posttiin57, on 01 December 2012 - 08:26 AM, said:

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.

Wait, what? The guy with the Java logo as his profile picture and his title is "Java Lunatic" prefers C#. Does not compute.

#9 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 01 December 2012 - 03:24 PM

View PostDlcruz129, on 01 December 2012 - 12:55 PM, said:

View Posttiin57, on 01 December 2012 - 08:26 AM, said:

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.

Wait, what? The guy with the Java logo as his profile picture and his title is "Java Lunatic" prefers C#. Does not compute.
C# doesn't have an awesome logo. ;)

#10 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 02 December 2012 - 10:16 AM

View PostDlcruz129, on 01 December 2012 - 12:55 PM, said:

View Posttiin57, on 01 December 2012 - 08:26 AM, said:

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.
Wait, what? The guy with the Java logo as his profile picture and his title is "Java Lunatic" prefers C#. Does not compute.
I meant I prefer C# to C++. C++ is terribad.
Of course, Java kicks ass. That's a given. :P

#11 1v2

  • Members
  • 89 posts
  • LocationAmsterdam

Posted 02 December 2012 - 12:40 PM

View Posttiin57, on 02 December 2012 - 10:16 AM, said:

View PostDlcruz129, on 01 December 2012 - 12:55 PM, said:

View Posttiin57, on 01 December 2012 - 08:26 AM, said:

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.
Wait, what? The guy with the Java logo as his profile picture and his title is "Java Lunatic" prefers C#. Does not compute.
I meant I prefer C# to C++. C++ is terribad.
Of course, Java kicks ass. That's a given. :P

C++ Is awesome, it dominates Java IMO.

#12 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 02 December 2012 - 12:46 PM

View Post1v2l3a4m5e6n, on 02 December 2012 - 12:40 PM, said:

View Posttiin57, on 02 December 2012 - 10:16 AM, said:

View PostDlcruz129, on 01 December 2012 - 12:55 PM, said:

View Posttiin57, on 01 December 2012 - 08:26 AM, said:

View PostJasonfran, on 01 December 2012 - 06:36 AM, said:

C# is fairly easy to understand if you have used Java or vise versa as they are very similar, whereas C++ is more powerful yet have a very different syntax
I prefer C# immensely.
Wait, what? The guy with the Java logo as his profile picture and his title is "Java Lunatic" prefers C#. Does not compute.
I meant I prefer C# to C++. C++ is terribad.
Of course, Java kicks ass. That's a given. :P

C++ Is awesome, it dominates Java IMO.

Java is the best. Its fast, and practically every computer has the JRE.

#13 cant_delete_account

  • Members
  • 484 posts

Posted 02 December 2012 - 12:54 PM

View PostDlcruz129, on 02 December 2012 - 12:46 PM, said:

Java is the best. Its fast, and practically every computer has the JRE.
Fast?...

#14 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 02 December 2012 - 01:55 PM

View Postthesbros, on 02 December 2012 - 12:54 PM, said:

View PostDlcruz129, on 02 December 2012 - 12:46 PM, said:

Java is the best. Its fast, and practically every computer has the JRE.
Fast?...

Faster than C, at least.

#15 1v2

  • Members
  • 89 posts
  • LocationAmsterdam

Posted 03 December 2012 - 11:15 AM

View PostDlcruz129, on 02 December 2012 - 01:55 PM, said:

View Postthesbros, on 02 December 2012 - 12:54 PM, said:

View PostDlcruz129, on 02 December 2012 - 12:46 PM, said:

Java is the best. Its fast, and practically every computer has the JRE.
Fast?...

Faster than C, at least.

Wrong. In some cases it might be faster then C, but in general, C is faster. Also, there is no such thing as the best language.

#16 russjr08

  • Members
  • 52 posts

Posted 06 December 2012 - 04:49 AM

Honestly, I prefer Java, though if I had to use C# I wouldn't throw as much of a fit as if I had to use C++/C (I really hate the syntax.)

#17 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 06 December 2012 - 04:51 AM

View Postrussjr08, on 06 December 2012 - 04:49 AM, said:

Honestly, I prefer Java, though if I had to use C# I wouldn't throw as much of a fit as if I had to use C++/C (I really hate the syntax.)

Agreed, the syntax of Java/C# is really nice.

#18 electrodude512

  • Members
  • 167 posts
  • LocationEastern USA

Posted 06 December 2012 - 10:44 AM

It's impossible for an interpreted language (java) to be faster than a language ( C ) whose programs are compiled, assembled to machine code, and then optimized. I can't see how java could possibly be faster than 1/8 of the speed of C, and that's looking at it at the assembly level. I will show you a comparison in assembly (not x86, however) if you don't believe me.

#19 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 06 December 2012 - 11:06 AM

View Postelectrodude512, on 06 December 2012 - 10:44 AM, said:

It's impossible for an interpreted language (java) to be faster than a language ( C ) whose programs are compiled, assembled to machine code, and then optimized. I can't see how java could possibly be faster than 1/8 of the speed of C, and that's looking at it at the assembly level. I will show you a comparison in assembly (not x86, however) if you don't believe me.
You are aware of the fact that a considerable part of a java program is being compiled to native bytecode nowadays, right?

#20 Myrddraall

  • Members
  • 8 posts

Posted 07 December 2012 - 07:24 AM

View PostOrwell, on 06 December 2012 - 11:06 AM, said:

View Postelectrodude512, on 06 December 2012 - 10:44 AM, said:

It's impossible for an interpreted language (java) to be faster than a language ( C ) whose programs are compiled, assembled to machine code, and then optimized. I can't see how java could possibly be faster than 1/8 of the speed of C, and that's looking at it at the assembly level. I will show you a comparison in assembly (not x86, however) if you don't believe me.
You are aware of the fact that a considerable part of a java program is being compiled to native bytecode nowadays, right?
hand optimized c/c++ is still faster. there is a reason that highly demanding games are written in c++ and not java... Photoshop, 3ds max these types of programs need every ouch of power and as such use c++. however if your app is only using 5% of the systems resources then that argument is irrelevant and java offers a lot of time saving development features. Not to say java is slow... it is by no means slow and getting closer to c every day. the nature of the languages means that java will never be as fast as c, however as processors upgrade and java is further optimized the difference in speed will matter to fewer and fewer applications





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users