Top "C" questions

C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.

fatal error: mpi.h: No such file or directory #include <mpi.h>

when I compile my script with only #include <mpi.h> it tells me that there is no such …

c++ c mpi openmpi
Send and Receive a file in socket programming in Linux with C/C++ (GCC/G++)

I would like to implement a client-server architecture running on Linux using sockets and C/C++ language that is capable …

c++ c linux sockets network-programming
I have Python on my Ubuntu system, but gcc can't find Python.h

I am on a school computer, so I can't install anything. I am trying to create C code which can …

python c ubuntu header
What is the closest thing Windows has to fork()?

I guess the question says it all. I want to fork on Windows. What is the most similar operation and …

c++ c windows fork
How to read/write arbitrary bits in C/C++

Assuming I have a byte b with the binary value of 11111111 How do I for example read a 3 bit integer …

c++ c memory bit read-write
C multi-line macro: do/while(0) vs scope block

Possible Duplicates: What’s the use of do while(0) when we define a macro? Why are there sometimes meaningless do/…

c macros multiline
How do I find the size of a struct?

struct a { char *c; char b; }; What is sizeof(a)?

c struct sizeof
How to printf a 64-bit integer as hex?

With the following code I am trying to output the value of a unit64_t variable using printf(). Compiling the …

c gcc 64-bit
Using continue in a switch statement

I want to jump from the middle of a switch statement, to the loop statement in the following code: while (…

c++ c switch-statement break continue
C non-blocking keyboard input

I'm trying to write a program in C (on Linux) that loops until the user presses a key, but shouldn't …

c linux asynchronous input nonblocking