Top "C" questions

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

What does void mean in C, C++, and C#?

Looking to get the fundamentals on where the term "void" comes from, and why it is called void. The intention …

c# c++ c language-design terminology
Core dumped, but core file is not in the current directory?

While running a C program, It says "(core dumped)" but I can't see any files under the current path. I …

c linux coredump
Why does printf not flush after the call unless a newline is in the format string?

Why does printf not flush after the call unless a newline is in the format string? Is this POSIX behavior? …

c printf flush
C error: undefined reference to function, but it IS defined

Just a simple program, but I keep getting this compiler error. I'm using MinGW for the compiler. Here's the header …

c function linker-errors undefined-reference
warning: incompatible implicit declaration of built-in function ‘xyz’

I'm getting a number of these warnings when compiling a few binaries: warning: incompatible implicit declaration of built-in function ‘strcpy’ …

c gcc gcc-warning
convert big endian to little endian in C [without using provided func]

I need to write a function to convert big endian to little endian in C. I can not use any …

c swap endianness
What is the difference between char array and char pointer in C?

I am trying to understand pointers in C but I am currently confused with the following: char *p = "hello" This …

c arrays pointers
segmentation fault : 11

I'm having a problem with some program, I have searched about segmentation faults, by I don't understand them quite well, …

c segmentation-fault
End of File (EOF) in C

I am currently reading the book C Programming Language by Ritchie & Kernighan. And I am pretty confused about the …

c eof