Beginner needs help.
C Programming | Reddit
by /u/Then_Hunter7272
1d ago
I am a self taught beginner in c programming, I learnt it on YouTube, but I wanted some clarity, I only know a few header files like stdio, stdbool, and math.h but it seems to me that there is more of these header files I was not taught and I think I will need other syntax to create some complex programs but I just don’t seem to know how to know them and understand it pls I want to know if these header files are important and if I need to know more than I know now and how important it is plus how to use them,how many of these files are out there, do I need them to create complex programs? su ..read more
Visit website
Typecast from void * to char - Error
C Programming | Reddit
by /u/EnzoShelby
1d ago
Hi, I am trying to cast a void * member inside a char but running into error and not able to debug since I am fairly new to c. Can someone tell me what is wrong? struct node{ void * ptr; int data; }; int main() { struct node *dtr = (struct node *) malloc (sizeof(struct node)); char x = 'a'; (char*)dtr->ptr = (char*) malloc (sizeof(char)); dtr->ptr = &x; printf(" %d",*(dtr->ptr)); return 0; } error: main.c:20:21: error: lvalue required as left operand of assignment 20 | (char*)dtr->ptr = (char*) malloc (sizeof(char)); submitted by /u/EnzoShelby [visit reddit] [comments ..read more
Visit website
NOOB NEED HELP
C Programming | Reddit
by /u/prabeshpaudel_23
2d ago
I made a tetris game for my college c project and used turbo c because i couldn't install the graphics library in dev cpp. Now it somehow worked and when i run the code in dev cpp its just blurry and misaligned , the font is stretched and shit. Also turbo c used diff way to print text where it only printed the letters but in dev it just creates a black block behind and prints text infront of it and i had animation running in the splash screen that get blocked by the block. is there any solution to this or do i just use turbo c and get it over with? Im really just a beginner so i have no idea ..read more
Visit website
Legal employment opportunites for malware devs
C Programming | Reddit
by /u/Peter9580
2d ago
Started development back in 2021, I've hopped to different fields . Initially, I explored web development, only to realize that it failed to ignite any passion within me. I transitioned to low-level engineering, where I gradually found myself drawn to malware. Interestingly, despite the potentially negative connotations, I discovered a genuine enthusiasm for malware development. There's a certain thrill to it that I failed to find elsewhere in other domains like web It's a curious phenomenon—I can't quite pinpoint whether it's the complexity of the tasks or the satisfaction of overcoming them ..read more
Visit website
Solve my codes..
C Programming | Reddit
by /u/salmanfarsirabi
3d ago
submitted by /u/salmanfarsirabi [visit reddit] [comments ..read more
Visit website
TCP server becomes clogged with CLOSE-WAIT connections
C Programming | Reddit
by /u/ErlingSigurdson
3d ago
submitted by /u/ErlingSigurdson [visit reddit] [comments ..read more
Visit website
C programming in Codeblocks, simple questions.
C Programming | Reddit
by /u/Royal_Woodpecker_714
3d ago
Can someone please help with the codes for these? Maybe if someone could reach out and explain it to me would be great. Thanks for the answers! Write a program that reads an input number of real values n (1 ≤ n ≤ 50). Find the line its smallest element and insert it at the beginning of the line as a new member. Write a program that reads an input number of real values n (1 ≤ n ≤ 50). Find the largest element of the row and replace all corresponding values with multiples of k, where the value of k is entered from the keyboard. Write a program that reads the input M and N (1 ≤ M, N ≤ 50 ..read more
Visit website
Synchronization Issue?
C Programming | Reddit
by /u/HalfHalfway
4d ago
I have an assignment where I have to make a synchronized producer/consumer problem in C. I coded the assignment on one computer, but I have to test it on another computer. I'm working on an Oracle VirtualBox VM for both computers (the assignment has to work in Linux, and I'm on Windows originally), and they are the same VM files. On the computer I coded it on, it works completely how I want it to, but when I test it on the VM on my other computer it doesn't output correctly. Code: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #includ ..read more
Visit website
What all will I need to learn/do ?? I want to make an Data Structure Visualizer
C Programming | Reddit
by /u/thestig3301
4d ago
I'm a 1st year college student. I have learnt DSA in C. As a holiday project, I'm thinking of making a DSA visualizer that'll show you what your linked list or say stack that you have created actually looks like. Seniors have asked me refrain from learning graphics in C. (cause its obsolete). My aim is to use this and finally and make a binary tree visualizer so that the creator can actually see on a window where, the data he put, went in the tree. What all will I need to learn or do ? submitted by /u/thestig3301 [visit reddit] [comments ..read more
Visit website
Noob Question. If I don't specifically malloc something, does it just exist in the stack
C Programming | Reddit
by /u/Unhappy_Drag5826
4d ago
I don't see how it could exist anywhere else, i just want to make sure I'm understanding correctly. If i specifically malloc something, then it exists on the heap, but i need to make sure i free it if i don't use it anymore, or the memory will remain allocated and sometimes unreachable, creating a memory leak. But if i don't specifically malloc something, then it will just get created on the stack. I hope that's right. tia submitted by /u/Unhappy_Drag5826 [visit reddit] [comments ..read more
Visit website

Follow C Programming | Reddit on FeedSpot

Continue with Google
Continue with Apple
OR