Top "C" questions

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

For vs. while in C programming?

There are three loops in C: for, while, and do-while. What's the difference between them? For example, it seems nearly …

c loops for-loop while-loop
How to modify memory contents using GDB?

I know that we can use several commands to access and read memory: for example, print, p, x... But how …

c linux memory gdb
C99 stdint.h header and MS Visual Studio

To my amazement I just discovered that the C99 stdint.h is missing from MS Visual Studio 2003 upwards. I'm sure …

c++ c visual-studio c99
Tokenizing strings in C

I have been trying to tokenize a string using SPACE as delimiter but it doesn't work. Does any one have …

c string tokenize
How to prevent gcc optimizing some statements in C?

In order to make a page dirty (switching on the dirty bit in the page table entry), I touch the …

c gcc
Difference between using Makefile and CMake to compile the code

I code on C/C++ and use a (GNU) Makefile to compile the code. I can do the same with …

c++ c makefile cmake
How exactly does __attribute__((constructor)) work?

It seems pretty clear that it is supposed to set things up. When exactly does it run? Why are there …

c++ objective-c c gcc
What is the difference between C and embedded C?

Can any body tell me the differences between them?

c embedded
implement time delay in c

I don't know exactly how to word a search for this.. so I haven't had any luck finding anything.. :S …

c time sleep delay timedelay
fork() and wait() with two child processes

I need to use the fork() and wait() functions to complete an assignment. We are modelling non-deterministic behaviour and need …

c unix fork wait