Top "C" questions

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

Difference between uint and unsigned int?

Is there any difference between uint and unsigned int? I'm looking in this site, but all questions refer to C# …

c gcc uint
When to use static keyword before global variables?

Can someone explain when you're supposed to use the static keyword before global variables or constants defined in header files? …

c static keyword
static and extern global variables in C and C++

I made 2 projects, the first one in C and the second one in C++, both work with same behavior. C …

c++ c static global-variables extern
Redirecting exec output to a buffer or file

I'm writing a C program where I fork(), exec(), and wait(). I'd like to take the output of the program …

c exec fork
Is unsigned integer subtraction defined behavior?

I have come across code from someone who appears to believe there is a problem subtracting an unsigned integer from …

c standards unsigned integer-arithmetic
Transform hexadecimal information to binary using a Linux command

I have this binary file on my Linux system... udit@udit-Dabba ~ $ cat file.enc Salted__s�bO��<0�F���Jw!���]�:`…

c command command-line-arguments binaryfiles hexdump
Detecting superfluous #includes in C/C++?

I often find that the headers section of a file get larger and larger all the time but it never …

c++ c refactoring include dependencies
how does int main() and void main() work

I am a beginner in C language. Can anyone explain in detail using example how main(),int main(), void main(), …

c void
C - split string into an array of strings

I'm not completely sure how to do this in C: char* curToken = strtok(string, ";"); //curToken = "ls -l" we will say //…

c c-strings
Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);

What is the significance of including ios_base::sync_with_stdio(false); cin.tie(NULL); in C++ programs? In my …

c++ c