Top "C" questions

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

GCC: Array type has incomplete element type

I have declared a struct, and I try to pass an array of those structs (as well as a double …

arrays c gcc multidimensional-array incomplete-type
CreateProcess: No such file or directory

I am getting this error whenever I try to run GCC outside of its installation directory (E:\MinGW\bin). So, …

c gcc mingw
What's the difference between a null pointer and a void pointer?

Whats the difference between a Null pointer & a Void pointer?

c pointers
Difference between r+ and w+ in fopen()

In fopen("myfile", "r+") what is the difference between the "r+" and "w+" open mode? I read this: "r" Open …

c fopen
C/C++ maximum stack size of program

I want to do DFS on a 100 X 100 array. (Say elements of array represents graph nodes) So assuming worst case, …

c++ c stack
Returning from a void function

Which is more correct way to return from function: void function() { // blah some code } OR void function() { // blah some code …

c function void
How to dynamically allocate memory space for a string and get that string from user?

I want to read input from user using C program. I don't want to use array like, char names[50]; because …

c string memory-management malloc dynamic
C: socket connection timeout

I have a simple program to check if a port is open, but I want to shorten the timeout length …

c network-programming
bool to int conversion

How portable is this conversion. Can I be sure that both assertions pass? int x = 4<5; assert(x==1); x = 4>5; …

c++ c c99
CMake unable to determine linker language with C++

I'm attempting to run a cmake hello world program on Windows 7 x64 with both Visual Studio 2010 and Cygwin, but can't …

c++ c cmake