Beginner Vector
C Programming | Reddit
by /u/Jikininki04
2h ago
EDIT: MY APOLOGIES, I FORGOT TO FINISH WRITING THE TITLE! "Beginner Vector debugging with string." Hello, I keep trying to run this code, but keep getting a fault. I have tried commenting out things, and it works like this, but anything other than that I just get error. Without commenting anything out, the code does not get errors just a warning on my end in Visual studio 2022. But I get a segmentation fault, when I input it into VS code. I tried to get a debugger on VS code, but my laptop would not cooperate. The output is supposed to be as such-- Found a space The Found a Space Fox Found a ..read more
Visit website
Beginner needs help.
C Programming | Reddit
by /u/Then_Hunter7272
2d 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
2d 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
3d 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
4d 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
4d 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
4d 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
5d 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
5d 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

Follow C Programming | Reddit on FeedSpot

Continue with Google
Continue with Apple
OR