close
Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
63 views

Browsing through the GCC docs, I noticed the following: As a GNU extension, GCC allows compound literals with a variable size. In this case, only empty initialization is allowed. And indeed, the ...
genek2's user avatar
Advice
1 vote
4 replies
144 views

I need some help from the industry experts, as I have been struggling with Programming. I have been working in the practical field at a factory shop. My work is to repair and make new items, and I ...
algo_404's user avatar
Best practices
3 votes
4 replies
118 views

I’m having some trouble parsing assembly efficiently. I read https://www.cs.tufts.edu/comp/150VM/modules/04asm.html, but I don’t like the approach of parsing assembly files twice for label resolution. ...
Giovanni's user avatar
Advice
0 votes
4 replies
81 views

In a project I'm working on where I want to, among other things, send config variables from one client to another; I've decided that I want to try and use a struct as a payload so that there's a clean,...
Sans the Medic's user avatar
Best practices
0 votes
2 replies
43 views

Does NVcompositor in Gstreamer Pipeline is reusable ? In my pipeline , I can't able to reuse the pipeline after 1st iteration , the pipeline receives SIGSEG. How to solve this issue Is there any ...
Mass Muthu's user avatar
Best practices
0 votes
2 replies
54 views

I have been writing a simulation that uses ECS, and i wanted to ask what the best practice would be for issuing/using IDs. My main question is: Should the index of the component be the ID, or should ...
SomeRandomStackGuy's user avatar
Advice
2 votes
8 replies
187 views

There is a significant difference between a reference and a pointer. But I want to ask at the low level how are they different. Some people say that references are just pointers under the hood but and ...
0xChaitanya's user avatar
1 vote
0 answers
95 views

I am using the latest version for the C driver (2.3.1) and MongoDB 8.3 and I am finding that the following code fails on the second call to cursor next after the first update call. The error variable ...
Phil C's user avatar
Advice
0 votes
26 replies
289 views

I am new to programming and learning about pointers in C , although it's easy but I want to know how pointers are implemented internally within systems because I want to be a system software so I am ...
Roshan 's user avatar
1 vote
0 answers
69 views

I experiencing a specific behavior in GDB where the standard hook-stop is completely bypassed if a next (Step Over (F10)) or step (Step Into (F11)) command is interrupted by a software breakpoint ...
Parminder Singh's user avatar
Advice
1 vote
7 replies
137 views

When I generate the preprocessed file of check.c, why is only main2.h included and not main.h? The file structure: directory: main.h main2.h main.c main2.c check.c main.c: int add(...
0xChaitanya's user avatar
Tooling
0 votes
1 replies
135 views

I am looking for public printf test suites that can be used easily to test your own implementation. Preferably the tests use a common unit test framework, cover the full functionality by comparison ...
BazooJoe's user avatar
Tooling
0 votes
11 replies
360 views

Most people on this planet have no idea what octal numbers are. For this it would be better to make the prefix 0o for octal numbers in parsers mandatory. However, the behaviour for base 0 of strtol ...
Klaus's user avatar
2 votes
2 answers
141 views

I'm trying to draw a .png image in a GtkDrawingArea, using libgtk-3-0 and libcairo2. Simple, right? But my code fails for some reason. Below is a stripped down version of my code. It can be compiled ...
Nathan's user avatar
2 votes
2 answers
235 views

I have a hexadecimal value in a string; I want to convert it to unsigned string. #include <stdio.h> int main() { char string_hexadecimal[100] = "5a2be26e5ef51ad833c153"; ...
Jane's user avatar

15 30 50 per page
1
2 3 4 5
27210