Top "C" questions

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

What are the GCC default include directories?

When I compile a very simple source file with gcc I don't have to specify the path to standard include …

c++ c linux gcc include-path
What is value of EOF and '\0' in C

I know that EOF and '\0' are of type integers, but if so shouldn't they have a fixed value? …

c++ c null eof
Installing OpenMP on Mac OS X 10.11

How can I get OpenMP to run on Mac OSX 10.11, so that I can execute scripts via terminal? I have …

c gcc openmp
C: correct usage of strtok_r

How can I use strtok_r instead of strtok to do this? char *pchE = strtok(NULL, " "); Now I'm trying to …

c char strtok
Must declare function prototype in C?

I am kind of new to C (I have prior Java, C#, and some C++ experience). In C, is it …

c function function-prototypes
How dangerous is it to compare floating point values?

I know UIKit uses CGFloat because of the resolution independent coordinate system. But every time I want to check if …

objective-c ios c floating-point floating-accuracy
What are the differences between poll and select?

I am referring to the POSIX standard select and poll system C API calls.

c unix select
Allocating memory for a Structure in C

I'm tasked to create a program which dynamically allocates memory for a structure. normally we would use x=malloc(sizeof(…

c malloc structure
What is the difference between static const and const?

What is the difference between static const and const? For example: static const int a=5; const int i=5; Is there …

c static constants
Simple Signals - C programming and alarm function

#include <stdio.h> #include <signal.h> void ALARMhandler(int sig) { signal(SIGALRM, SIG_IGN); /* ignore this …

c signals