Top "C" questions

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

Variable number of parameters in function in C++

How I can have variable number of parameters in my function in C++. Analog in C#: public void Foo(params …

c++ c syntax variadic-functions
time delay in C. usleep

I'm developing the game server, which is written on C. And I need to develop a cycle with a certain …

c timedelay usleep
Wrapping a C library in Python: C, Cython or ctypes?

I want to call a C library from a Python application. I don't want to wrap the whole API, only …

python c ctypes cython
ImportError: dynamic module does not define init function (initfizzbuzz)

I tried to compile fizzbuzz.c, in order to import it by python. For building fizzbuzz.c,I used python …

python c python-c-api
storage size of ‘names’ isn’t known

I get this error while compiling this .c source file /INIT_SOURCE_BUILD/src/names_list.c:7: error: storage size …

c struct typedef forward-declaration
What's the equivalent of new/delete of C++ in C?

What's the equivalent of new/delete of C++ in C? Or it's the same in C/C++?

c++ c new-operator delete-operator
When would anyone use a union? Is it a remnant from the C-only days?

I have learned but don't really get unions. Every C or C++ text I go through introduces them (sometimes in …

c++ c unions
DESTDIR and PREFIX of make

I am trying to make software install to a specific directory. I found several ways, but not sure what are …

c linux bash makefile configure
error C2275 : illegal use of this type as an expression

Since yesterday, I've been facing a compiling error for my C project. The project itself consists on creating a service …

c visual-studio-2010 winapi service compiler-errors
Explain this snippet which finds the maximum of two integers without using if-else or any other comparison operator?

Find the maximum of two numbers. You should not use if-else or any other comparison operator. I found this question …

c algorithm math bit-manipulation max