Top "C" questions

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

makefile:4: *** missing separator. Stop

This is my makefile: all:ll ll:ll.c gcc -c -Wall -Werror -02 c.c ll.c -o ll $@ $&…

c makefile
What is the difference between const int*, const int * const, and int const *?

I always mess up how to use const int*, const int * const, and int const * correctly. Is there a set …

c++ c pointers int constants
How do I get the directory that a program is running from?

Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is …

c++ c working-directory
How do you make an array of structs in C?

I'm trying to make an array of structs where each struct represents a celestial body. I don't have that much …

c arrays struct
Convert a character digit to the corresponding integer in C

Is there a way to convert a character to an integer in C? For example, from '5' to 5?

c type-conversion
Regarding 'main(int argc, char *argv[])'

Possible Duplicates: What are the arguments to main() for? What does int argc, char *argv[] mean? Every program is starting …

c argv argc
How to define an enumerated type (enum) in C?

I'm not sure what is the proper syntax for using C enums. I have the following code: enum {RANDOM, IMMEDIATE, …

c enums
How to convert char to integer in C?

Possible Duplicates: How to convert a single char into an int Character to integer in C Can any body tell …

c char int
Debug vs Release in CMake

In a GCC compiled project, How do I run CMake for each target type (debug/release)? How do I specify …

c++ c gcc cmake
C: printf a float value

I want to print a float value which has 2 integer digits and 6 decimal digits after the comma. If I just …

c floating-point