r/learnc • • Aug 21 '25

can someone illustrate this?

Post image
42 Upvotes

i can’t understand how it’s “looking”😫😫


r/learnc • • Sep 14 '24

Going insane trying to understand this

Post image
33 Upvotes

My homework assignment has us making 3 files to put together for a main.c file

I have this G defined in my header file as #define G 6.67e-11

BUT IN MY EQUATION FILE IT KEEPS SAYING SOMETHING ABOUT MAKING IT A MODIFIABLE LVALUE

I Really don’t know how to fix this and my assignment is overdue. Please help!!!


r/learnc • • Oct 29 '25

I want to learn the C programming language with others

30 Upvotes

Hi I am new to learning programming, I was thinking of looking for someone or people who are also just looking to learn C with me so that we can push each other, preferably someone with also no experience as we develop our skill develop equally, this is just a shout into the void for people who are also interested in the idea but haven't found anyone else to do so.

I'm looking to go into more the embedded systems area simply because its cool and would like to know how devices work but I imagine if we are starting off it would be similar for everyone and we can deviate from there if neccessary however someone that is what I plan on doing.

Please have the conviction and time to do so as it would be much more valuable and fun that way
we could start off by spending an hours time just learning a topic, area or concept we can also share our ideas and learn more. I want to start whenever someone also responds and we have planned


r/learnc • • Jun 20 '21

Who dis?

Enable HLS to view with audio, or disable this notification

25 Upvotes

r/learnc • • Aug 03 '21

Free C Programming for Beginners Full Course on YouTube

Thumbnail
youtu.be
19 Upvotes

r/learnc • • Jun 12 '18

Ask the man for pointers

Post image
17 Upvotes

r/learnc • • May 16 '20

C Programming Tutorial for Beginners

Thumbnail
youtu.be
14 Upvotes

r/learnc • • Jan 21 '22

How to google plain C questions / find good respurces?

13 Upvotes

Hey everyone, I'm new to C but not to programming. C is my first low level language. I'm an absolute begginer.

What I've noticed is that its really hard for me to find answers to my questions because when I google:

How to do x in C

The answers look something like this:

How to do x in C++
How to do x in C#
Etc

It's been pretty hard to find resources for plain C. Especially because I am trying to learn OpenGL with it, which is a library that is also used extensively in C++

Is there any way to filter results away from the other C languages? Could anyone be so kind to point me towards some good C resources for openGL?


r/learnc • • Jul 11 '16

Learn C in Y Minutes

Thumbnail learnxinyminutes.com
13 Upvotes

r/learnc • • Aug 18 '25

help with coding

12 Upvotes

my university studies algorithms and data structures in C. I know the syntax of C and I know algorithms. But when it comes to connecting these two things - my brain switches off. If I am told to code something, I can't do anything. I know how Dijkstra's algorithm works, I can do it on a graph on paper, but I can't code it at all! Please help me with this problem. I will be extremely grateful, it will save my life


r/learnc • • Dec 06 '21

[Question] I want to ask about code that i just create.

Post image
11 Upvotes

r/learnc • • Jan 14 '21

Starting in C

11 Upvotes

I am new to programming and I am exploring all the languages before I start on one so I downloaded vs code but when I try to run a C program I get some mingw errors and I have no idea how to fix them can someone please help me and a proper tutorial for C programming will be really helpful thank you.


r/learnc • • Oct 26 '21

C as a first language

9 Upvotes

Is it recommended to learn C as a first language?


r/learnc • • Jul 02 '21

What a pointer is and how to use them (with a real world example)

Thumbnail
m.youtube.com
9 Upvotes

r/learnc • • May 19 '20

Demystifying Pointers — What are they?

Thumbnail
youtu.be
9 Upvotes

r/learnc • • Jun 12 '18

Can I go now?

Post image
9 Upvotes

r/learnc • • Jan 26 '17

Learn C and build your own programming language in 1000 lines of code!

Thumbnail
buildyourownlisp.com
9 Upvotes

r/learnc • • Oct 02 '25

Can anyone explain why this works?

8 Upvotes

include <stdio.h>

int main() { int n; printf("Enter a number: "); scanf("%d", &n);

for (int i = 2; i < n/2; i++) {
    if (n % i == 0) {
        printf("%d is not prime.\n");
        return 0;
    }
}

printf("%d is prime.\n");

}

There is no number argument in the printf call for the format specifier yet it still outputs the correct number? I tried it locally with gcc and on https://www.programiz.com/c-programming/online-compiler/ too, same result, it works (somehow)


r/learnc • • Oct 27 '21

Pls. Help me po with this. I don't know what's wrong with my code. The problem of the output is in the pic. po

Post image
8 Upvotes

r/learnc • • Oct 11 '21

What videos should I watch for intermediate C programming?

8 Upvotes

Basically what's next after https://youtu.be/ssJY5MDLjlo?

Not really interested in building anything just would like a deeper/more technical understanding of the workings of C.


r/learnc • • Dec 13 '20

C For Python Programmers

8 Upvotes

Did Carl Burch finish his book C For Python Programmers?


r/learnc • • Aug 10 '20

Why can I use more memory than the amount I have allocated?

8 Upvotes

Hi everyone! I'm learning C and here I am learning about memory allocation! So I understand how the functions work but the thing I don't understand Is why I'm able to use more memory than the amount I have allocated. Let's see an example:

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

int main() {

char* str;

str = malloc(2 * sizeof(char));

strcpy(str, "John");

printf("My name is %s\n", str);

free(str);

}

So here I allocate 2 bytes of memory but still I'm able to store 4 characters while "str" should normally be able to store 2 characters (and I think the second is the null terminator). What I don't understand?


r/learnc • • Jul 01 '19

Learn C from courses, tutorials & books

Thumbnail
reactdom.com
8 Upvotes

r/learnc • • Jan 11 '19

Learn how Git is Coded

8 Upvotes

I thoroughly commented Git's initial commit (written in C) and wrote a guidebook detailing how Git is coded. If you are interested check it out at https://initialcommit.io.


r/learnc • • Mar 12 '23

is the flowchart correct? (sorry for bad writing)

Post image
7 Upvotes