Segmentation fault on large array declaration [duplicate] – This question already has answers here: Getting a stack overflow exception when […]
Month: October 2022
Char to int conversion in C
Char to int conversion in C – If I want to convert a single numeric char to it’s numeric value, […]
Fork-exec pipe redirection issue
Fork-exec pipe redirection issue – Could anyone tell me what’s wrong with this code? In summary, it creates input and […]
What is the effect of extern “C” in C++?
What is the effect of extern “C” in C++? – What exactly does putting extern “C” into C++ code do? […]
Address difference between two integer variables in c
Address difference between two integer variables in c – #include<stdio.h> int main() { int i=10,j=20,diff; diff=&j-&i; printf(“nAddress of i=%u Address […]
const for array size expressions on argument
const for array size expressions on argument – I have the following C code example: int f(const int farg[const 5]) […]
memcpy moving 128 bit in linux
memcpy moving 128 bit in linux – I’m writing a device driver in linux for a PCIe device. This device […]
strtok segmentation fault
strtok segmentation fault – I am trying to understand why the following snippet of code is giving a segmentation fault: […]
Determine programmatically if a program is running
Determine programmatically if a program is running – In C, how can I find out programmatically if a process is […]
Implementing RAII in pure C?
Implementing RAII in pure C? – Is it possible to implement RAII in pure C? I assume it isn’t possible […]