I've written a function trailing_zeroes(int n) that returns the number of the trailing zeroes in the binary representation of a number. Example: 4 in binary is
In unix/linux world, there are a couple of different C Standard Library implementations to choose from and link against, but although I spent some time searchin
I've been doing some programming in Java and some in C but now I need to sort of use both together. Here's the situation, I'm using Hadoop/Hbase to process and
How can I return a JavaScript string from a WebAssembly function? https://dev.to/azure/passing-strings-from-c-to-javascript-in-web-assembly-1p01 - not working
I know how to use events to test when a key is pressed or not, but in C I never found out how to do that. What I want exactly is a "KeyListener" that listens fo
I am defining a custom typedef Elements as follows.... typedef enum { Ar, Cl, F, He, H, Kr, Ne, N, O, Rn, Xe } Ele
I am working with Ubuntu 19.04 (Disco Dingo), and I have GCC installed. When I run gcc I am getting an error showing that I do have gcc: gcc: fatal error
I want to know if we can have recursive macros in C/C++? If yes, please provide a sample example. Second thing: why am I not able to execute the below code? Wh
I have a driver which is, for some unknown reasons causing a bugcheck 0x0000003b. So I decided to set up a Hyper-V VM and use kernel debugging to see what exa
I keep seeing people claim that the MOV instruction can be free in x86, because of register renaming. For the life of me, I can't verify this in a single tes
I'm attempting to cross-compile and link a very simple EFI application that is using the EFI headers from the Zircon kernel. Despite my best efforts, I am unabl
Is it possible to separate base FW and application code on ARM Cortex-M4 architecture (e.g STM32 F4). What I´d like to do is to run applications from exte
I need to get the information provided by addr2line (source file and line from backtracing a function call) from within a C++ program. I know I can call addr2li
I was looking at the MSDN documentation for fscanf. I tried changing the sample code in the documentation, but it didn't work as I expected. If, for example, I
I've encounter an issue in Visual Studio which drives me crazy. It is regarding unallocated pointers. I wanted to write a simple linked list app.The problem is
Is there any way to find nth root of the number without any external library in C? I'm working on a bare metal code so there is no OS. Also, no complete C is th
I am compiling the glibc library. Before I could do that, I need to run configure. However, for compiling glibc, I need to use the gcc compiler which is not the
How is the fmod function implemented? I tried the following: #include <stdio.h> #include <math.h> float floatMod(float a, float b) { return (a/
I need to calculate and compare execution time of multiplication of 2 matrices in 3 different sizes (100 * 100 , 1000 * 1000 and 10000 * 10000) in C programming
I am trying to write a program where i need to monitor ends of unnamed pipe for certain events. Can I use unnamed pipes with poll function? If yes, can you plea