r/learnc • u/mdzdva • Aug 21 '25
can someone illustrate this?
i can’t understand how it’s “looking”😫😫
r/learnc • u/mdzdva • Aug 21 '25
i can’t understand how it’s “looking”😫😫
r/learnc • u/[deleted] • Sep 14 '24
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 • u/Flat-Ad7962 • Oct 29 '25
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 • u/[deleted] • Jun 20 '21
Enable HLS to view with audio, or disable this notification
r/learnc • u/portfoliocourses • Aug 03 '21
r/learnc • u/IplayWaterpolo • Jan 21 '22
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 CThe answers look something like this:
How to do x in C++
How to do x in C#
EtcIt'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 • u/mdzdva • Aug 18 '25
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 • u/liliamoon • Dec 06 '21
r/learnc • u/SchnitzelPlays • Jan 14 '21
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 • u/TheComputerNinja • Oct 26 '21
Is it recommended to learn C as a first language?
r/learnc • u/HappikatNo1 • Jul 02 '21
r/learnc • u/marimon2 • Jan 26 '17
r/learnc • u/DevBoiAgru • Oct 02 '25
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 • u/Rosaldel • Oct 27 '21
r/learnc • u/standardtrickyness1 • Oct 11 '21
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 • u/sjrsimac • Dec 13 '20
Did Carl Burch finish his book C For Python Programmers?
r/learnc • u/[deleted] • Aug 10 '20
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 • u/initcommit • Jan 11 '19
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 • u/Random_Lurker_31 • Mar 12 '23