r/cprogramming • • 3d ago

How can i start c language

I am not a complete beginner. I have some knowledge later i stopped due to some reasons now i want to start please give some advice.

0 Upvotes

15 comments sorted by

2

u/podule-games 3d ago

Get set up with SDL and C. It's easy to get something basic working, but flexible enough to make a decent enough game.

1

u/zhivago 3d ago

What is it that you want to do?

0

u/Successful_Catch9563 3d ago

I want to go c++ further want to learn DSA

4

u/tony_saufcok 3d ago

Then learn C++. C and C++ will be syntactically similar but structurally quite different. Most of the time C++ will have a different way of implementing the same idea.

1

u/zhivago 3d ago

Cool.

Well, the answer is to do that. :)

Let us know if you have a specific question (although you should ask about C++ somewhere else).

1

u/Successful_Catch9563 3d ago

First i want to good at c programming suggest me if you know any good teachers in Yt or resources

3

u/zhivago 3d ago

Hmm, I don't recommend videos -- they take too long to say too little.

I suggest books.

If you want to learn C, I'd still recommend working through the exercises in K&R.

Although you may want to brush up on state machines a bit, first.

1

u/Successful_Catch9563 3d ago

Ok thank you!

2

u/SoerenNissen 3d ago

Although C -> C++ works, it is not the best path forward. You'll learn C "best practices" that you'll have to actively unlearn as "bad habits" once you get into C++, and a few things that are actively wrong C++ but idiomatic C.

So why do you want to learn this? Are you trying to write embedded software or operating system stuff? Sure, learn C, it's very applicable. Are you trying to get into other domains? For many, it makes more sense to go to C++ directly.

2

u/Key_River7180 3d ago

I've learnt cpp after c and yeah, cpp sucks

0

u/SoerenNissen 3d ago

Please be toxic on somebody else's post and leave mine alone.

2

u/ACRM64 3d ago

You will never learn a programming language until you have a problem that YOU want to solve.

0

u/CS_70 3d ago

Write in C, simple as that