I'm maintaining a project where someone has suggested that we make some variables volatile. I'm trying to understand if it's needed at all (or could be needed).
Task: using the function of generating an array to a file, the function of reading an this array, and the quick sort function, sort the read array. I wrote all
This is well known code to compute array length in C: sizeof(array)/sizeof(type) But I can't seem to find out the length of the array passed as an argument t
I found a source code online for calculating PHI. I made some small adjustments to the variable types, such as using an unsigned long int, however I am limited
I'm trying to understand why I am getting this error message. error: data argument not used by format string [-Werror,-Wformat-extra-args] printf("Enter car
I am trying to sort a string array in C (char**), the string array is an array of all the names of files in a directory. Here are all the parts of the code, I e
I'm trying to compile this decade-old project: https://github.com/komar007/freecg The makefile generates Makefile.dep which seems incorrectly formatted. How sho
In the function outb(0x3D5, (uint8_t) (pos & 0xFF));, I am having trouble understanding the purpose of the bitwise operation. pos is a uint16_t variable. Wh
I have the following code. I tried to change the value of y by using a pointer to a pointer (i.e. trying to do a de-referencing twice from the pointer that poin
Good day, I am practicing about Arithmetic and started to experiment a bit and got confused. How can I total the liter, refueled, and tendered? #include <std
I have very big text file, with dozens of millions of words, one word per line. I need to find top 10 most common words in that file. There is some restrictions
i have been given a code to sort a linked list that contains links (we call them maillons in french, sorry i don't really know how it's called in english) of Op
I'm trying to launch a process from a system service using the token handle of the currently active user with elevated privileges (if user is in admin. group).
I'm trying to implement an embedded firmware on an stm32 F4 micro that takes an binary code from the serial and execute it on the micro. The idea is pretty simp
#include <stdio.h> #include <string.h> void main(void) { char in[15], rev[15]; printf("Enter a word (upto 15 letters): "); gets(in);
I'm working with some legacy code. It works fine on a CentOS 7 system. The args array gets hosed on both a Rocky 8.4 and Ubuntu 20.04 system. I've simplified th
I try to disable highlight on a row when it is selected for a GtkTreeView widget (default is blue background and white text color). I tried to change the STATE_
//File Name: "track_distance.h" #ifndef TRACK_DISTANCE_H_INCLUDED #define TRACK_DISTANCE_H_INCLUDED typedef struct Point_struct { float x; float y; }
Here is my exercise: Write a function that receives from the user two strings that show two real numbers (possibly negative), And produces a string that contai
I was trying to load a Glade layout into a GTK2 C code. It consists of a window in which there is a VBox with 2 elements: a label and a button. I want to associ