LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-19-2018, 02:47 PM   #1
CrazyCoder
LQ Newbie
 
Registered: Feb 2017
Posts: 5

Rep: Reputation: Disabled
C vs C++ vs C# Programming ???


I want to learn the differences between C, C++, and C#. I'm not a purist so I want to study all three of them. But I want to know what they have in common and different, in case I need to transpose C to C# or C# to C++ ect.
 
Old 03-19-2018, 05:19 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
You should find many articles about the strengths and differences of each language with a simple online search. For C-pound-sign, you may want to search the MS web pages as it was developed by them for use within dot-net environments.

C and C++ share a common heritage, the most notable differences being native support for the OOP paradign by C++, as well as its template support and libraries.

A good place to find pre-filtered resources is the C/C++ Tutorials thread at top of the Programming forum. Lots of resources there!

The best way to learn the differences, is to learn the basics of each then write your own example code projects in each, with attention to application features of interest to you.

Good luck!
 
Old 03-19-2018, 05:52 PM   #3
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I'd start at c then c++ since c++ also includes everything c does but vice versa is not true. I never messed with c# since that is a geared towards Windows.
 
Old 03-19-2018, 06:00 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
C# is a language designed by Microsoft for its "dot-Net" platform and is specific to that. It was designed by the team which created Borland's Delphi compiler, after Microsoft gave them an offer they couldn't refuse . . .
 
Old 03-22-2018, 11:16 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I'm not a purist and my stance is that I don't care. That being mentally and internally. I have to accomplish the things I need to do, so whatever language and platform works for me.

I do a moderate amount of C# because we build an instrument where it needs a Windows based interface, and I long ago decided that I needed to use Microsoft's tools to create these applications, otherwise I'd be in trouble with some oddball non-compatibility issues.

C++ (Linux or other), and C# BOTH have standard C library functions. They also have other features, some of which I use, because of the platform. Most of which I don't bother with.

My only comment is that uSoft makes it so that it is hard to contend easily (not impossible, you just have to understand what you're doing) with straight binary as well as byte oriented information. For instance we send a ton of binary data in byte oriented protocols and the application needs to process that and present it properly. Their default modes are so "string" oriented, that this is a problem, until you surpass it once and then copy your project for every future next step you take.

While their ways to do threads, send signals, and take care of re-entrancy are vastly different, they have thought about it. Yes I prefer System-V programming, but if one does a GUI I typically use Visual Studio or Qt (for Linux) and get excellent results both visibly as well as performance.

Having said all that: Learn C, learn it good. You'll have no problems with C++, C#, Java, Python, or Objective-C, and probably many others.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New to Programming? Check out these Outstanding Open Source Programming Books LXer Syndicated Linux News 0 01-25-2017 09:33 AM
future of programming, programming jobs, programming languages? detr Programming 17 08-01-2016 03:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration