#include <stdio.h> int main() { int c,peo,pie,rem_pie; pie = (int) c/peo; rem_pie = (int) c%peo; printf("Enter number of cupcakes:");
I am attempting to complete a lab. When I run this code nothing is written to the text file that is created. According to the lab it should write A thru Z to th
Ive been trying to solve this one for some time but im unable to come up with a solution. I need a child process to understand complex WASD keyboard input (with
I am trying to compute the pseudoinverse of a matrix in C code. Specifically, I am trying to compute the Moore-Penrose pseudoinverse using singular value decomp
I have a fragment of code where something like this happens: char buf_path[0x100]; *len = fs->read(0, buf_path, 0x1000); What I want to do is to enter two N
When I use something like char result[1000] = ""; char psBuffer[1000]; FILE* pPipe = _popen(command, "rt"); while(fgets(psBuffer, 1000, pPipe) != NULL) { st
Why does the following code: struct number { int num1; int num2; } arr[5]; arr[0].num1 = 1; int main() { return 0; } produces: main.c:8:8: error:
Anyone have an idea as to why a pic will have very different output voltages on certain pins ?? I use multiple outputs on one switch and sometimes the one pin w
My shop is using Coverity 2019.3. We have MISRA-C 2004 enabled. I want to disable MISRA-C 2004 Rule 2.2: Source code shall only use /* ... */ comments. The cov-
I have a difficult to understand how token QoS work in Paho MQTT C code. My idea is that I want to read the PUBACK when using the QoS =1, for publisher to know
I'm currently a student and need to learn C. I'm working on a Debian Virtual Machine using CLion. To manage my assignments better, I created a github repository
I'm trying to trigger some concurrent conflicts by having several processes writing to the same file, but couldn't: #include <stdio.h> #include <stdlib
I'm trying to build ECCODES C package (https://confluence.ecmwf.int/display/ECC/ecCodes+installation) on Windows 11 for further usage with python pygrib library
I have a new standard c++ project on an imx rt 1024 (an nxp chip), in which I try to move my vector table to SRAM. It fails, depending on a change I apply in th
I’m trying to display YUV420p video using OpenGL. I understand how it is supposed to work (uploading Y, U, and then V buffers in separate textures while p
I get segmentation fault when i try to pass opened python 3 file object to c routine via FILE * pointer. I try porting a python 2 code to python 3 and as so far
I get segmentation fault when i try to pass opened python 3 file object to c routine via FILE * pointer. I try porting a python 2 code to python 3 and as so far
I have this file.bat : cd "C:\Program Files(x86)\Anydesk" && anydesk.exe If i double click on it it works fine and does what i want. Now i try to launc
When a certain if statement is passed i have to remove the head node from my first linked-list "new_queue" and add this to the back of my second linked-list "re
I'm trying to cross compile (for armv7a and aarch64, android) the gettext library (dependency for glib). The configuration and compilation is successful, but du