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
I have a piece of software that generates a rather large text file full of information about files in a directory. There are often several thousand files. Each
I have to write a program for matrix multiplication.there may be an easier algorithm,but i want to know what is the problem here and if there is anything wrong
You are most likely seeing this question because your question has been closed as a duplicate of this. For a moderately complete list of related questions, ple
I have a need where i need to forward traffic with libnetfilter_queue to another server, after adding some informations in it. Problem is that i'm stuck on the
Dependencies: GLFW 3.3.7 GLAD 4.0 core CGLM 0.8.5 stb_image 2.2.7 Compiler: GCC 11.2.0 (MinGW-W64) CMake 3.23.1 GNU Make 4.3 Problem The .obj file for main.c (a
#include <stdio.h> extern int count(char *string, char c); int main(void) { char s[100]; char c; printf("Enter a string of characters:\n"); scanf
It's follow-up question to: How to detect non IEEE-754 float, and how to use them? In theory, can we assume that c float always support negative numbers?
I have a server process that allocates a big chunk of memory using the System V XSI shared memory calls (shmget/shmat), from address to 0x500000000 to 0x1d00000
#include <stdio.h> int main(void) { int* ptr = NULL; *ptr = 10; printf("%d", *ptr); return 0; } I am very new to C programming and sorry
Can someone please explain whether i = x[i]++; lead to undefined behavior? Note: x[i] and i are not both volatile and x[i] does not overlap i. There is C11, 6.5
I am working on a project that requires me to allocate some space using the mmap function and I need to create a bitmap in the beginning of the allocated space.
I have some pretty simple questions. What is the main difference between node.h and napi.h. What should I use for normal/personal use case. Why are there more "
I am creating an executable with this: gcc elliptical.o -Llibs -lhfcal -o elliptical In my libs sub folder there are: libhfcal.a libhfcal.so files. My purpos
I have simple code that reads a .jpg file But my read returns 0 and errno is 0. I just prefer of use read with read syscall. #include <stdio.h> #include &
I have intel system with Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04). I have downloaded the datasheet like d
I have a strange problem with gcc and constants and .rodata Let's assume: typedef const struct { const char *a; } data_t; typedef const struct { const dat
I'm pretty new to C and I can't figure out why I'm getting a segmentation fault from this code: void delete_list(LIST *list) { NODE* n = list->head; whil
I have been doing a school project about digital watermark based on DCT using LabWindows CVI 2012. I divide an image with the size of 512 * 512 into many 8 * 8
I have been doing a school project about digital watermark based on DCT using LabWindows CVI 2012. I divide an image with the size of 512 * 512 into many 8 * 8