I'd say it depends upon your reason for wishing to learning either language.
I took a Java class last semester and I learned C from a really good book about 18 months ago. If you don't have any experience in programming I would start small so that it won't confuse you, like it did me. I found that the book Learn C on the Mac was a great was to get started in programming. I spent a good 3 months slowly reading that book and redoing the small projects my own way. When I finished I wrote a small console based blackjack game.
With C under my belt I was easier to move into Object-C. Everyone has a learning curve. You can aim hi but don't be afraid step back in to a simpler language. It will take a while to get good and it depends on you.
for (int cnt = 0; cnt < SomeInt; cnt++)
{
int myInt = AFunctionCall(cnt);
}
I want to learn c++ then objective c so i can make apple apps.
I wouldn't bother. I'd probably learn C, then Java.
But, I'd learn Python, Ruby, or Javascript first. Java and especially C can be incredibly de-motivating when trying to learn how to do the simplest of programs.
It's not really going to help you learn core C concepts faster. It might actually prejudice you in some ways so if you do go that path (or really even the reverse) so try to keep an open mind when switching to one language from the other. Essentially the core concepts are different and the stuff that does transfer is syntax like:
Code:for (int cnt = 0; cnt < SomeInt; cnt++) { int myInt = AFunctionCall(cnt); }
Stuff like that should be rather reasonable to learn in the first place.
Edit: Ironically I had a much longer post that covered a couple of things now brought up in replies... here's part of it in reference to...
Coming up with good advice for this kinda depends on what your background is. I get the feeling that you're just starting out and really don't have a lot of familiarity with any one language.
C, C++, and Objective C are similar in a great number of ways. Learning one can help with learning one of the others but it can also cause major headaches. As I learn Objective C myself, I tend to rely on my C++ knowledge in respect to the overall Object Oriented nature of the language but I really have to try to keep myself in an Objective C state of mind. Trying to use Objective C like C++ is a pretty bad idea (and vice versa for that matter). Each language has its own mindset that you have to get a grasp on. In many ways this is more important than just getting used to a different syntax. In the case of C++ and Objective C, even though they're both Object Oriented, they do it in two very different ways.
If your end goal is learning Objective C, you're probably better off starting with a good C primer to learn the C memory model, pointers, and C style syntax before moving to Objective C related books (most of which will have a mini-C primer as a refresher). You will end up working with ISO/ASNI C code at some point so thats definitely not a waste of time. Once you're comfortable with C/Objective C, start from a fresh empty cup stand point and learn modern C++ (as in, don't write C++ like C with a little C++ sprinkled in). Then feel free to mix them properly and appropriately with Objective C++.
The problem I have encountered, even in my own coding, is that the C/Unix DIY approach is the antithesis of good Obj-C code.
In C, you are actively encouraged to build stuff from scratch. Painfully crawling over the broken glass and barbed wire.
Higher level languages, especially OO ones, would never force you figure out your own bubble sort, or parse input strings by hand, and the reality is that you do not need to know how this works to be productive and meet your goals.
Sure, it can help when you run up against something that doesn't work, but it is far from essential.
I repeat if the end goal is to learn Objective-C to program on Macs/iOS focus on learning that. Learn C along the way as it will be useful, but it is too easy to develop detrimental habits that way.
DISCLAIMER: Everyone learns things differently, YMMV, IANAL, etc...
B
Thank you you are right i have no prior knowledge to any language so i think ill just get my self a learning c book in fact i saw a website teaching c and it is much easier to learn then java IMHO.
I want to learn c++ then objective c so i can make apple apps.