C is a general-purpose computer programming language used for operating systems, libraries, games and other high performance work. This tag should be used with general questions concerning the C language, as defined in the ISO 9899:2011 standard. If applicable, include a version-specific tag such as c99 or c90 for questions relating to older language standards. C is distinct from C++ and it should not be combined with the C++ tag absent a rational reason.
I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if conditi
In C, I know I can dynamically allocate a two-dimensional array on the heap using the following code: int** s
Why this function is not working here? It's not sorting on output. Suppose if I enter 1 4 2 the output is
Here's a C simple program, that reads a user input for a file location and prints the first line if such
I am trying to use this macro definition in C: #define STR(x) #x Is it possible to contain some escape sequen
My delete function can pass the test 1-5 shown in main() but can't pass test 6. The expected result is me
We are using popen and poll with timeout for reading output from a process. I have a case where we with popen
I know how to initialize strings in C in two different ways. char str[] = "abcd"; char str[] = {'a'
I am trying to write the code with my own library. I did this for the other functions such as 'bind'
i'm trying to pass struct variables to a function, but i receive: error: conflicting types for 'refe
The following test code shows that a -DMY_FLAG on command line gives the symbol MY_FLAG a non-zero value, acco