Top "C" questions

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

Unable to open a file with fopen()

I've been trying to open a file and output text, but I keep getting errors. So I thought I would …

c file-io fopen stdio
Compiler warning - suggest parentheses around assignment used as truth value

When I try to compile the piece of code below, I get this warning: warning: suggest parentheses around assignment used …

c compiler-construction compiler-warnings
How can I see an the output of my C programs using Dev-C++?

I'm looking to follow along with The C Programming Language (Second Addition) on a machine running Vista. So far, I've …

c dev-c++
read pixel value in bmp file

How can I read the color value of 24bit BMP images at all the pixel [h*w] in C or …

c++ c image bmp dev-c++
What's the difference between “mod” and “remainder”?

My friend said that there are differences between "mod" and "remainder". If so, what are those differences in C and …

c math operators
Difference between "move" and "li" in MIPS assembly language

I was practicing converting C code into MIPS assembly language, and am having trouble understanding the usage of move and …

c assembly mips
Can gcc output C code after preprocessing?

I'm using an open source library which seems to have lots of preprocessing directives to support many languages other than …

c c-preprocessor preprocessor preprocessor-directive
Is it better to use C void arguments "void foo(void)" or not "void foo()"?

What is better: void foo() or void foo(void)? With void it looks ugly and inconsistent, but I've been told …

c void
Abort trap 6 error in C

I have this code: void drawInitialNim(int num1, int num2, int num3) { int board[2][50]; //make an array with 3 columns int …

c arrays loops abort
Meaning of "referencing" and "dereferencing" in C

I read different things on the Internet and got confused, because every website says different things. I read about * referencing …

c pointers reference dereference