Is C easier to learn than C++? and is C++ alot easier to learn when you know C?
just wonderng.
im currently learning C++ but would u recomend starting to learn c aswell or just stick to C++?
Is C easier to learn than C++? and is C++ alot easier to learn when you know C?
just wonderng.
im currently learning C++ but would u recomend starting to learn c aswell or just stick to C++?
I'd say stick to C++. My opinion is biased as hell but stick with C++. C++ makes things much easier than C and it removes some garbage (like having to put 'struct' each time you declare a struct of whatever type) and adds the STL and other great features that aren't part of the C language.
>>Is C easier to learn than C++?
Yes, because C is not as complicated as C++. But ... c++ has to many more advantages that it is worth learning. You should learn one or the other, but learn them both.
>>is C++ alot easier to learn when you know C?
Maybe. If you know nothing about any programming language then c++ may be easier to learn if you have already learned C but there are some things about C that don't work in C++. You really should view C and C++ as two completly different languages, rather than trying to view c++ as an extension of C.
Last edited by Ancient Dragon; 05-23-2006 at 10:21 PM.
If you want to learn C++, learn C++.
http://www.research.att.com/~bs/bs_f...l#prerequisite
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
ok thanks for the replies people! ill just stick to C++ then.
was just curious thats all.
Some people say there are advantages in using C for some purposes, and others for using C++ in other situations ... I don't know what they are, but if you know how to use C++, I think you should have a pretty good idea of how C works, the basics of it I mean. I guess the converse applies too though.
Last edited by twomers; 05-24-2006 at 02:51 AM.
C is easier, but thats because it's used for much different things -
the main use for C is in the embedded systems market -
programming micro-controllers that run your washing machine,
where it is a higher level alternative to chip specific assembly.
C is less that half the size of C++ in terms of features IMO. C++
is also easier to learn knowing some C, but that doesn't mean
you should do it that way. Learning C++ first and then learning C
can lead to writing "better" C code, but there are pros and cons
for learning either first.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI