-
Comparing C language vs C++ Language
I'm attending a computer course, then I have an assignment regarding what
are the differences in term SYNTAX between the two language. I haven't learn
C language, I directly learn C++.
So, can anybody explain about it or point me the relevant web site..?
Any help is highly appreciated.
Thanks.
Jacky E.
-
Re: Comparing C language vs C++ Language
You gotta be kidding! Suffice it to say that ISO C has 26 (28 in C99)
keywords and ISO C++ has 63 (+ 11 alternative representations for
operators). Besides, many C++ constructs, e.g., templates can be divided
into sub categories such as class templates, function templates,
explicit template instantiation, partial specialization etc., each of
which uses a specific syntactic formulation. You can look at the C++
standard for the BNF of each construct or read Stroustrup's book for a
complete description of C++ syntax. As for C, simply run a search on
every major search engine for "C99" and look for the draft standard
document.
Danny
"Jacky E." wrote:
>
> I'm attending a computer course, then I have an assignment regarding what
> are the differences in term SYNTAX between the two language. I haven't learn
> C language, I directly learn C++.
>
> So, can anybody explain about it or point me the relevant web site..?
>
> Any help is highly appreciated.
>
> Thanks.
>
> Jacky E.
-
Re: Comparing C language vs C++ Language
Bjarne Stroustrup covers this in Appendix B of "The C++ Programming Language,
Third Edition."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|