Top "C" questions

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

The Definitive C Book Guide and List

This question attempts to collect a community-maintained list of quality books on the c programming language, targeted at various skill …

c
How do I concatenate two strings in C?

How do I add two strings? I tried name = "derp" + "herp";, but I got an error: Expression must have integral …

c string
Why are #ifndef and #define used in C++ header files?

I have been seeing code like this usually in the start of header files: #ifndef HEADERFILE_H #define HEADERFILE_H …

c++ c c-preprocessor
Calling C/C++ from Python?

What would be the quickest way to construct a Python binding to a C or C++ library? (I am using …

c++ python c
How to print a int64_t type in C

C99 standard has integer types with bytes size like int64_t. I am using the following code: #include <stdio.…

c stdint
How to declare strings in C

Can anyone explain me what is a difference between these lines of code char *p = "String"; char p2[] = "String"; char …

c
How to copy a char array in C?

In C, I have two char arrays: char array1[18] = "abcdefg"; char array2[18]; How to copy the value of array1 to …

c arrays char copy
Typedef function pointer?

I'm learning how to dynamically load DLL's but what I don't understand is this line typedef void (*FunctionFunc)(); I have …

c++ c pointers typedef
C compiler for Windows?

I'm fine working on Linux using gcc as my C compiler but would like a Windows solution. Any ideas? I've …

c windows compiler-construction
Is there a function to copy an array in C/C++?

I am a Java programmer learning C/C++. So I know that Java has a function like System.arraycopy(); to …

c++ c arrays