C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.
I am using the latest gcc with Netbeans on Windows. Why doesn't long double work? Is the printf specifier %lf …
c gcc printf long-doubleConsider: #define MAXROW 20 #define MAXCOL 60 typedef State Grid[MAXROW+2] [MAXCOL+2] typedef enum state {DEAD,ALIVE} State How do I use …
c typedefIs there a printf width specifier which can be applied to a floating point specifier that would automatically format the …
c floating-point printf c99 floating-point-precisionLet us assume, int *p; int a = 100; p = &a; What will the following code will do actually and how? …
c pointersI'm new to multithreading, and was trying to understand how mutexes work. Did a lot of Googling but it still …
c++ c multithreading synchronization mutexIn this question, someone suggested in a comment that I should not cast the result of malloc, i.e. int *…
c malloc castingTask: Print numbers from 1 to 1000 without using any loop or conditional statements. Don't just write the printf() or cout statement 1000 …
c++ c printfHow can I multiply and divide using only bit shifting and adding?
c assembly bit-manipulation division multiplicationIn C, I understood that if we close a socket, it means the socket will be destroyed and can be …
c sockets networking