Question:
Should I start with C or C++?
CFdoc1
2012-07-14 09:03:42 UTC
Can someone first tell me the relationship between the two, is C++ derived from C?

Also, I eventually wish to program apps to be sold in the iTunes store, and it is my understanding that for this I must learn Objective-C, a language based on C. So here are my real questions:
1. Should I start by learning C, or C++ if I eventually want to work with Objective-C?
2. Im not sure since C++ seems more modern so could that be a segway into Objective-C or would I have to start with C?
3. Or could I just dive into Objective C with no prior knowledge of C or C++?

Any advice is greatly appreciated.
Thanks if anyone answers...
Nine answers:
tbshmkr
2012-07-14 11:03:34 UTC
I recommend C, then C++

=

But if you can go straight to Objective-C

- Programming in Objective-C by Stephen G. Kochan

- - http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/0321811909

=

Programming: Principles and Practice Using C++ by Bjarne Stroustrup

-

Programming in C by Stephen G. Kochan
Cubbi
2012-07-14 13:05:09 UTC
> Should I start with C or C++?

If you want to learn C, start with C. If you want to learn C++, start with C++



> is C++ derived from C?

Yes. And C was derived from B, and B from BCPL, etc. That's not relevant to learning (you don't learn German and French to learn English, right?)



> Should I start by learning C, or C++ if I eventually want to work with Objective-C?

Neither. Start with Objective-C. Learning a different language before the one you want is a waste of time and effort, unless you actually plan to use that other language.



> C++ seems more modern so could that be a segway into Objective-C or would I have to start with C?

They are three different languages. Neither one is a 'segway' into another. They share common ancestry, yes, and they share some concepts, but many other concepts are fundamentally different. So much so, that, in my opinion, knowing C well is a major obstacle to learning C++.



Just learn what you want to learn.
jplatt39
2012-07-14 13:58:40 UTC
Objective C is a different derivative of C than C++. C++ is, according to its author, C with objects and namespaces. Objective C was a version of C with mainly objects developed in the eighties for use on the NeXTStep desktop for UNIX. Studying them in some order or another actually does not make sense. They ae similar enough to confuse you and different enough to be a challenge doing things. If you want to learn Objective-C study objective-C.
?
2012-07-14 16:10:51 UTC
1. Neither. Learn the language you want to know, which is Objective-C.

2. See #1.

3. See #1.
2016-05-18 06:21:54 UTC
The C++ language is a superset of C so that means while you learn C++ you are probably going to absorb most of the C language and no, you do not need any C in order to learn C++. EDIT: With a knowledge of C++, then Java and C# will not be all that difficult to learn, so yes you can advance to other languages.
Cronin
2012-07-14 09:13:45 UTC
If your end goal is objective-C then just start with Objective-C... save yourself a headache.
2012-07-14 09:08:15 UTC
Let me tell you. According to me programming of appications needs good foundations. So, since you are interested in programming, you need to have good command over c++ which inturn requires C. so,I suggest you to learn C first and then C++.
loveangel
2012-07-14 09:10:03 UTC
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Examples/Hello_world

http://ubuntuforums.org/showthread.php?t=691451

http://www.dreamincode.net/forums/topic/63742-troubleshooting-some-errors/
galt_57
2012-07-14 09:06:54 UTC
See below...


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