Whilst trying to compile my C project with GCC, I keep getting an error that goes something like this: main.c:2:10: fatal error: ./include/windows.h: No such fi
In the code below which statements have integer promotions? unchar a; unchar b; short c; a = 0xFE; b = 0xFE; c = a+b; int d = a==b I got the question like this
So I was practicing some coding about how functions work and I ran into a problem: The code is meant to reverse a number. The algorithm works perfectly well so
I'm trying to sample pcm-data via the ALSA-project on my RaspberryPi 4 in c. Recording things works like a charm, but tampering with the samples themselves leav
I was trying to visualize the algorithm of this exercise, but I'm having a lot of problems. the exercise asks to implement this function: extern const void *mem
I can change the color of a button with CSS (background und color). But this don't work for dropdown button and textview. Do you have any suggestions? "#Button
I'm new to C just coming out of my second university class that explained structs and string functions. I tried running the code we had written in the lesson an
I know there is a longest increasing subsequence algorithm that runs in O(nlogn) (https://www.geeksforgeeks.org/longest-monotonically-increasing-subsequence-siz
My Code ↓ Some macros defined by #include <stdio.h> #include <malloc.h> #define ElementType int #define ERROR 0 // 队列ஷ
*x = L->list[i]; /* Save the deleted element to parameter x */ for(j = i+1; j <= L->size-1; j++) L->list[i] = L->list[i+1]; L->size--;
How can I show all the columns of my treeview at my application startup. My treeview has multiple columns: gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_
This is a follow-up from the following question Custom Instruction crashing with SIGNAL 4 (Illegal Instruction): RISC-V (32) GNU-Toolchain with QEMU (apologies
I am coming from looking at Rust and How do I detect unsigned integer multiply overflow? where in Rust they have checked_add, which is implemented like this: pu
I come to you with a weird problem I've been facing. So last week, I installed llvm and libomp for a C project, and it compiled just fine with this at the start
OS - Windows 8.1 IDE - CLion 2021.3.2 I need to print some greek characters but what I have is these symbols: ╬╗ , ╬╝ , ¤ü
In C atof=a-to-f(loat) converts a string into a double precision float. I am wondering what the a part of atof stand for.
I need to load some fixed-length-string dictionaries from disk: count of word-lengths ( 1 .. 18 ), word-lengths ( 3 .. 20 ), word-counts ( 1 .. N ) for each wor
I want to pass liked list to function and create new list. I need some help to understand what I'm doing wrong. I create new pointer and copy the pointer to "cu
I have one "server" process a and potentially multiple "client" processes b. The server creates a shared memory file (shm_open) containing a pthread_mutex_t and
C/C++ allows assigning values of a pointer to another pointer of the same type: #include <iostream> using namespace std; int main() { int* a = new i