r/C_Programming • u/MeasurementCandid957 • Oct 07 '26
Give me suggestions to understand c programming in the first semester?
I am facing difficulties learning C programming. Currently, I don't have a laptop, so I can't practice that way. I'm unable to understand even the basic topics of C programing currently. Please give me some tips on how to improve.
Edit: Understood. I can actually learn it through practice on a laptop; I'll get a laptop soon.
6
Upvotes
9
u/[deleted] Oct 07 '26
Trust me, whatever you do is useless as long as you don't practice. Get a laptop or, which will be horrile, use your phone. You can't learn programming just by reading it, the same way you can't learn painting by watching others paint.
4
u/primitiveblob Oct 07 '26
theres only so far books/other can take you, without something to practise on. mobile, *works* but i speaking from experience, the experience is terrible. get a laptop as soon as feasible. and for C itself, what sort of difficulty exactly?
2
u/Spiritual_Poo Oct 07 '26
Do you know any programming at all in other languages? I finished my associates at community college in May and we started with Python for a few semesters and then did some C and C++.
Do you know the very basics? Loops? If statements? Variables? Functions?
Your initial post doesn't do a good job of explaining where you are now and what you know.
I am not the guy to help you with C, but I can at least tell you that the guys who can help you need better information to help you.
3
u/mykesx Oct 07 '26
https://github.com/mschwartz/assembly-tutorial
C is considered a shorthand for assembly language. This tutorial explains how CPUs work, which is the foundation for why C exists, and for its constructs.
1
u/TermiteTornApart Oct 07 '26
You can't really improve if you don't have where to practice, I know that this is not what you want to hear, but you should buy a laptop, it doesn't have to be anything expensive, the cheapest one you can afford will do, but I recommend an old thinkpad with a linux distro like mint.
Aside from that just practice as much as you can, read some books like "The C Programming Language", do small projects like a todo list cli app once you understand how file operations work for example and just keep at it, you will get frustrated and stuck a lot of times, but that's just part of learning a few months later you're going to look back and see how much you have improved.
1
u/DreamingElectrons Oct 07 '26
C has been around for so long, that you can run it on some absolute potato machines, the kind of PCs that people just give away for free because it's just clutter to them and they are happy that it's gone. Go get one of those, wipe it, slap on Linux Mint or any other Linux distro for older/weaker systems and go get some coding exercises done. There almost is no way around trying things out yourself, books can only get you so far.
1
u/CavalryArcher Oct 07 '26
not more than 2 years ago i was using some mobile apps both on ios and android that operate as online compilers, you can do some search. you can also compile c completely offline too, better than nothing until you can buy a laptop
1
u/strange-the-quark Oct 07 '26
If you have a phone, or even better, a tablet (just because of a bigger on-screen keyboard), google for "C compiler online", there's a number of websites out there that allow you to mess around with C code. It's going to be a bit tedious to enter the code on a small screen and without a physical keyboard, but this might help bridge the gap until you get a laptop. Also, when you open these websites, check if the default view on your phone's/tablet's browser is working for you, or if it's better to enable "Show desktop site" from the dropdown.
1
u/txdsl Oct 07 '26
What hardware do you have? Do you have an iPad or something with a screen larger than a phone ? If you do then look at using GitHub codespaces to set of development environments. They have prebuilt environments for most major languages and tech stacks
3
u/SoggyStress7785 Oct 07 '26
To understand a language you need to write it.
3
u/TechBor3 Oct 07 '26
KN King textbook
1
u/torsten_dev Oct 07 '26
Read K&R 2nd edition.
1
u/txdsl Oct 07 '26
Beej’s guide to c programming is good. I also used Effective C (book) and the c man pages for system calls and standard library.
1
u/Cloud_Agent_069 Oct 10 '26
I recommend https://godbolt.org.
1
u/ReadingReLemon Oct 11 '26
Try W3schools (it has c, c+, c#, html &css ) that's what my proff taught me
1
u/twr14152 Oct 11 '26
Im assuming you have a phone to post this. Learn the syntax first.
https://beej.us/guide/bgc/html/split/
https://en.cppreference.com
Go find online coding ide
Practice
1
u/fsteff Oct 11 '26
You’ll need a computer to practice on. Without it, you won’t actually learn what you read about.
But you don’t need a fancy computer; a 10-15+ year old laptop is still plenty for common day usage. Install Lubuntu or another light Linux and you have everything you’ll need to use a computer and to practice programming.
1
u/tellthatfox Oct 11 '26
I haven’t looked but I am almost certain there are apps available through the play store or App Store that would let you practice C
-7
u/tastygames_official Oct 07 '26
adfjakljöads dsafla sd lasdfö asdfö sdalkdfö
buy a fucking book and learn like a human being instead of posting on reddit asking "how do I be human?"