Jump to content
  • Advertisement
Sign in to follow this  
kaktusas2598

Does I need to know any C when writing games or programs in C++?

This topic is 3035 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Nope; C++ is a completely different language, and using C-style code is almost always a bad idea anyways (since C++ has superior alternatives available) [smile]

Share this post


Link to post
Share on other sites
No you don't need to know C when programming C++. If you are doing your own projects or just learning the language then its fine to learn C++ without going over the C library functions.

However nearly every C++ programming test that I've done for a job interview has had a whole bunch of questions regarding C functions. In fact I've seen interview papers that have said at the top of the page "C++ Test" and then contained nothing but questions regardin C string handling functions and various questions regarding char*.

Share this post


Link to post
Share on other sites
Quote:

Knowing C is a prerequisite for learning C++, right?

Wrong. The common subset of C and C++ is easier to learn than C. There will be less type errors to catch manually (the C++ type system is stricter and more expressive), fewer tricks to learn (C++ allows you to express more things without circumlocution), and better libraries available. The best initial subset of C++ to learn is not "all of C".

source

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!