In GTK/C, I want to propagate the backspace keypress to a button clicked. Following the suggestion in this previous post, I tried with a small program: create a
Let say I have a simple c-library project, the layout is as follows - src/ - square_root.c - log.c - power.c - newton_method.c - include
I'm writing classes for basic types, so that code is logically the same on multiple platforms and compilers (like int_least16_t for int). For fun! (I'm still a
I am learning ARMV8 assembly language on my raspberry pi 4 and I want to know the simplest way that I can add two floats whilst choosing which registers I use t
/* jump to reset vector. esp := 0 */ int main(int argc, char **argv) { PRINT("reset\n"); _eflags = 0; // interrupt disabled __asm__ __volatile__ ("\
I am doing a cs50 assignment filter(blur). i didnt do it really well but it is working. bluring all the pixels except the first row(north) and the final row (so
Given an unsorted array of size n, write a program to find number of elements between two user-defined elements a and b (where a and b both are inclusive) of a
I'm trying to compile with a sysroot for Ubuntu 22.04 from a Ubuntu 20.04 image, and I'm having quite a bit of trouble, getting linker errors like these: /usr/b
I'm trying to exit the console screen i.e close the screen what command can i use to achieve this. void main() { int n; printf("Please enter a number l
I am currently learning C. My ecosystem consists of an Espressif ESP-32 micro controller and Eclipse CDT IDE. I am trying to convert an uint
Since employing ccache on our CI server, we find that the bottleneck in terms of build time is now our static analysis pass, that uses clang-tidy, among other t
I want to create N processes from one parent and this child processes have to read that parent write, but what i have only the first process reads correctly: #
I have a MakeFile file in the following way: conf: cd teste nano teste However, when i execute make conf, he does not enter in the di
I'm trying to identify why a call to lua_newuserdata result in SIGSEGV. The gdb backtrace is : Thread 2 "main.o" received signal SIGSEGV, Segmentation fault. [S
Normally I compile code (all in a single file main.c) with the intel oneapi command prompt like so icl.exe main.c -o binary_name I can then run binary_name.exe
C As you see in this code I'm trying to print the below pattern, Is the code is right to print the pattern cuz in my computer it show's wrong. //To print this t
Sum of numbers occurring in the multiplication table of 8. What's wrong with my code? Desirable output is 440, and I'm getting 33204. #include <stdio.h>
I am trying to build a program in python using Cython and PyInstaller. Before starting, I built this test program. However, the two modules aren't working toget
So I have this simple program that sleeps for 4 second if the value returned by fork is '0' meaning that the child process is executing, I've tried using sleep
I am learning linux socket programming, I expect that server can read data, even I add a delay but it just drops the buffer data, and receive the recent data, t