I currently face a situation where I have to use Google Test for C-Code. So I am not really able to use gmock to mock C-modules. What I want to […]
Hello , I’m working on optimizing a bubble sort implementation in `C` for an `x86-64` architecture specifically targeting an Intel Core i7 processor using `GCC 11.2` . I noticed that […]
I have been wrestling with a persistent segmentation fault in a multi-threaded C++ program running on a cluster of AMD Barcelona CPUs Linux/x86_64. The code causing the crashes is a […]
Has anyone managed to get printf working with floats on an M4 preferable with cmake and vscode. My cubeIDE works just fine.
I’m trying to use the LD_PRELOAD to inject my custom function in a program. I’ve compiled a shared library `getpid.so` having a modified getpid function that prints a message: #include […]
What will this program output? “`C++ #include class Matrix { public: Matrix(int rows, int cols) : rows(rows), cols(cols) { data = new int*[rows]; for (int i = 0; i < […]
** What will this program output? ** “`c++ #include unsigned long long factorial(int n) { if (n == 0 || n == 1) { return 1; } return n * […]
What will be the output of this program when num is 5? #include <stdio.h> int computeSum(int n) { if (n == 0) return 0; else return n + computeSum(n – […]
A **Fibonacci** Word is a specific sequence of binary digits (or symbols from any two-letter alphabet). The Fibonacci Word is formed by repeated concatenation in the same way that the […]