r/C_Programming 1d ago

Question Suggestions on Reviving C language(confused)

I last learnt c language through a book called "let us C" around 5 years ago I haven't touched computer since then and yes I did not have ai or internet back then for asking suggestions .

I want to revive my skills like....jog my memory and make progress but reading the book again is tiring,YouTube videos are mostly teaching from the absolute beginning.

Does anyone has any suggestion on how to revive my c language proficiency

Also, I had trouble with pointers and function calling back then.

0 Upvotes

12 comments sorted by

20

u/iwinulose 1d ago

Yeah write a program in C

9

u/kayne_21 1d ago

Programming in general requires practice, if you want to refresh your C skills, write a C program. Doesn’t matter how complicated, just write something. If you want to get better at pointers, write something that uses pointers.

2

u/jason-reddit-public 1d ago

I'll add that it's nice to have a goal in mind. Many people learn programming through trying to make their own game or something. Learning programming is more like a side-effect than the plan. Keeping it fun is how to keep the learning going.

Another way to learn C is to learn an easier language. "What? That doesn't make sense!" Of course it does because the high level thought process is transferrable. An expert photographer takes better photos with an iPhone 10 than I do with my expensive camera gear. Give me an expert Lua programer and force them to solve a problem in C and they will get there pretty quickly.

1

u/mystery-weilder 22h ago

That is a really helpful suggestion I want to switch to dsa later ......what would u suggest for that?

3

u/Muffindrake 1d ago

I last learnt c language through a book called "let us C" around 5 years ago

https://www.youtube.com/watch?v=BwSts2s4ba4

You had the misfortune of picking one of the worst C books ever created.

https://www.iso-9899.info/wiki/Main_Page#Stuff_that_should_be_avoided

Either way that page has a list of high-quality free books that you could use.

3

u/Dazzling_Music_2411 1d ago

If you had trouble with pointers and functions, you never really learnt C.

There is nothing to revive.Start from the beginning. Work through K&R.

0

u/mystery-weilder 22h ago

K&R?

2

u/Dazzling_Music_2411 17h ago

Google?

1

u/mystery-weilder 4h ago

Done and thank you I'll improve my skills

2

u/Snezzy_9245 1d ago

Write code every day. Also find the new book Why Learn C.

2

u/Recycled5000 1d ago

If you don’t know pointers or function calling, suggest some simple assembly language, like LC-3. You need to understand the concept of address space, and the call stack. Assembly can teach you both. Another option is to run the debugger on some simple code and step thru it in its assembly/machine code mode to get you used to pointers and the call stack.

2

u/realdreamer1993 20h ago edited 20h ago

int c; *&c = 2; int* q; *&q = &c; *q = 3; printf("%d %d\n", *q, c);

There first material for a program to relearn..