The problem : I am trying to create a linked list which contains the characters of a string in each field of the linked list(to get the distance of each letter
I used perf mem on my test C program, because I want to get how many times the mem load(and store) on the same pages. a. My C program is here: "stest.c" #includ
I’m trying to make a program which sums the numbers in an array, the first half of the array by the first thread and the second half by the second thread
I have the following code for splitting the AVL tree and I'm not quite sure if it has Time Complexity of O(log(n)) or O((log n)2). Note: The Complexity of join
For errno, there are a bunch of library functions, like strerror(), etc. to convert or print the error code. But what about the error codes re
I'm trying to input a line at the end of a file that has the following shape "1 :1 :1 :1" , so at some point the file may have a new line character at the end o
I want to get the i-th element of the void*. I understand that it is void type and I have to give it a certain data type. The idea behind this is that it should
I'm trying to build an edge detection program using the code below. I have faced a variety of problems though, that I don't know how to solve. #include <stdl
I am posting this question because I have a problem with my beginner programming project. I am new in the use of gtk and I am blocked by a problem that I wish t
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