Top "C" questions

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

Is it possible to convert char[] to char* in C?

I'm doing an assignment where we have to read a series of strings from a file into an array. I …

c char
FFT in a single C-file

I was looking for a FFT implementation in C. However, I am not looking for a huge library (like FFTW) …

c fft
C: Size of two dimensional array

I need some help counting the rows and columns of a two dimensional array. It seems like I can't count …

c arrays dimensional
How to scanf only integer and repeat reading if the user enters non-numeric characters?

Here is some C code trying simply to prevent the user from typing a character or an integer less than 0 …

c validation user-input
Finding current executable's path without /proc/self/exe

It seems to me that Linux has it easy with /proc/self/exe. But I'd like to know if there …

c++ c linux macos executable
When should I use mmap for file access?

POSIX environments provide at least two ways of accessing files. There's the standard system calls open(), read(), write(), and friends, …

c file-io posix mmap
Call a C function from C++ code

I have a C function that I would like to call from C++. I couldn't use "extern "C" void foo()" …

c++ c linux extern-c
The differences between initialize, define, declare a variable

After reading the question, I know the differences between declaration and definition. So does it mean definition equals declaration plus …

c++ c terminology
What are the differences between .so and .dylib on osx?

.dylib is the dynamic library extension on OSX, but it's never been clear to me when I can't / shouldn't use …

c++ c macos unix
Removing elements from an array in C

I just have a simple question about arrays in C What's the best way to remove elements from an array …

c arrays subtraction