Top "C" questions

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

Difference between int32, int, int32_t, int8 and int8_t

I came across the data type int32_t in a C program recently. I know that it stores 32 bits, but …

c int declaration
C/C++ macro string concatenation

#define STR1 "s" #define STR2 "1" #define STR3 STR1 ## STR2 Is it possible to concatenate have STR3 == "s1"? You can do …

c++ c c-preprocessor
Use of #pragma in C

What are some uses of #pragma in C, with examples?

c pragma
Effects of the extern keyword on C functions

In C, I did not notice any effect of the extern keyword used before function declaration. At first, I thought …

c syntax standards
What does 'const static' mean in C and C++?

const static int foo = 42; I saw this in some code here on StackOverflow and I couldn't figure out what it …

c++ c
Where are static variables stored in C and C++?

In what segment (.BSS, .DATA, other) of an executable file are static variables stored so that they don't have name …

c++ c compiler-construction
ld.exe: cannot open output file ... : Permission denied

I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this …

c windows windows-7 codeblocks mingw32
Copy struct to struct in C

I want to copy an identical struct into another and later on use it as a comparance to the first …

c struct copy microchip
How do I get the unix timestamp in C as an int?

I would like to get the current timestamp and print it out using fprintf.

c unix timestamp epoch
What is the size of an enum in C?

I'm creating a set of enum values, but I need each enum value to be 64 bits wide. If I recall …

c enums