How to switch from C to C++ language?

I am pretty confident with C language but I’m finding it hard to solve some problems. I know some of the syntaxes of C++, suggest to me how to begin because I’m quite worried about this.

1 Like

learn from youtube or a book and code !

1 Like

As c is a subset of cpp so it should not be very difficult to switch from c to cpp. At first think why you are switching to cpp. If the sole purpose is competitive coding then you can go to geeksforgeeks and learn the STL in c++. learn the data types , string manipulation in c++. you will get a few differences between c and c++ in implementation over here C++ features not in C.
If you are learning C++ for other than competitive programming then you should learn the object oriented concept. then you should try classes objects etc in c++. Here also you can refer to geeksforgeeks and cppreference.

1 Like

Thank you brother for your time.

1 Like

Thank you a loooot brother. I will follow your suggestion.