What's the difference between C and C++ and Which I can do first if I have basic knowledge of HTML and CSS. Will some extra info be req. ?
hello,
When we compare c and c++ :c is subset of c++
c++ can run c programees
c helps in programming development
c++ helps in object oriented programming
HTML and CSS acts as front end and back end
you can learn c by seeing videos in youtube
u can watch sandeep saradhi
Naresh it c videos
Not only watching videos make you understand u should practice the code using online c editor.
Yeah, it's very much true that C++ is derived from C language. Actually its an advanced version of C.
- C language is an procedural language that does not support Object Oriented Programming whereas
- C++ is a combination of both procedural and Object Oriented Programming .
- C does not support function and operator overloading whereas C++ supports these.
- C does not have Namespace feature whereas C++ uses Namespace feature to avoid name collisions.
- C uses functions for input/output. For example scanf and printf whereas C++uses objects for input output. For example cin and cout.
- C does not provide direct support for error handling (also called exception handling) whereas C++ provides support for exception handling.
These are some of the main differences between C & C++. There are many more.
So, you can see that C is a subset of C++.
Now the question comes which you can do first.
Taking my example Aryan I have done C++ first. We were taught C++ in school time and seriously after coming to college I learnt C as it was in our syllabus. I didn't found any problem with that. What you had done in C++, only its 60% was there in C. So what's the difference. The difference is just the syntax.
Yes, it's true. If you know C or C++ then you will only take max. 2 weeks to learn a different language as these programming languages just differ only in syntax. The algorithm is same for all.
In my opinion if you haven't started with any of the languages then go for C as you will really enjoy the beginning, the basics. Just jumping over to C++ you will learn the language no doubt but you won't be able to know how actually these things made. That's what the best thing about C. And when you come to C++ you will find that you have already done 60% of the things just the syntax differs.
Now comes, HTML & CSS. See aryan these 2 languages are totally different. These are a part of your FROND END DEVELOPMENT (PART OF WEB DEVELOPMENT). You will use them to design Web pages, websites. It's really good that you know them in advance as generally students after leaning C, C++, Java etc opt for Web Development and they learn these two after that.
So, I think I have pretty much solved your problem related to programming language.
All the best
Feel free to ask for any query :)

Now talking about the books, generally preferred book is LET US C. I have studied from this book, just so simple language and best book for a beginner.
Another book is Schaum Series. This book is contains examples with solutions and everything is given already in the book you need not to search through net.
In my opinion Aryan go for Let Us C, if you will learn C language from this book it will really be beneficial compared to Schaum Series.
Let Us C book will make you think even digger in this field and if are able to do the exercises then bingo :)
Hope this would be helpful.
Hello Aryan, there is not too much difference in c and c++. C ++ is derived language from c. C ++ implements all functionality of c, and along with that it provides some additional features. So you have to learn C language first. Then you can go for c++ . HTML and CSS both are different languages. It is not necessary to have knowledge of these languages to learn C. But if you have knowledge then it is better.
I hope it will help you.
Thanks.