Top "C" questions

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

How to format a number from 1123456789 to 1,123,456,789 in C?

How can I in C language format a number from 1123456789 to 1,123,456,789? I tried using printf("%'10d\n", 1123456789); but that …

c formatting numbers
Exception from HRESULT: 0x80131047

I am having this problem whenever I try to debug my project: It's in French, here is my translation: "Error …

c# c hresult
What is the use of typedef?

What is the use of typedef keyword in C ? When is it needed?

c typedef
Difference between const & const volatile

If we declare a variable as volatile every time the fresh value is updated If we declare a variable as …

c embedded
Is it feasible to compile Python to machine code?

How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code? Presumably it would …

python c linker compilation
C How to "draw" a Binary Tree to the console

What algorithms can be used to draw a binary tree in the console? The tree is implemented in C. For …

c algorithm layout binary-tree
Which is faster: while(1) or while(2)?

This was an interview question asked by a senior manager. Which is faster? while(1) { // Some code } or while(2) { //Some code } …

c performance while-loop
fopen / fopen_s and writing to files

I'm using fopen in C to write the output to a text file. The function declaration is (where ARRAY_SIZE …

c file-io precision fopen
inline function vs macro function

Possible Duplicate: Inline functions vs Preprocessor macros I want to know the difference between the inline function and macro function. 1) …

c macros inline
How can I immediately close a program in C?

I am writing C code, in which I am analyzing some data. I have set the program to handle only 100 …

c exit