Top "C" questions

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

It is more efficient to use if-return-return or if-else-return?

Suppose I have an if statement with a return. From the efficiency perspective, should I use if(A > B): …

python c performance compiler-construction
How to measure time in milliseconds using ANSI C?

Using only ANSI C, is there any way to measure time with milliseconds precision or more? I was browsing time.…

c portability time-precision
const char* concatenation

I need to concatenate two const chars like these: const char *one = "Hello "; const char *two = "World"; How might I …

c++ c string-concatenation
make: Nothing to be done for `all'

I am going through an eg pgm to create a make file. http://mrbook.org/tutorials/make/ My folder eg_…

c makefile
What does "request for member '*******' in something not a structure or union" mean?

Is there an easy explanation for what this error means? request for member '*******' in something not a structure …

c struct unions
Combining C++ and C - how does #ifdef __cplusplus work?

I'm working on a project that has a lot of legacy C code. We've started writing in C++, with the …

c++ c c-preprocessor extern-c
dereferencing pointer to incomplete type

I've seen a lot of questions on this but I'm going to ask the question differently without specific code. Is …

c struct compiler-errors typedef dereference
How to compile and run C files from within Notepad++ using NppExec plugin?

How can I configure the NppExec plugin for Notepad++? I would like NppExec to compile my C files, run them, …

c notepad++ nppexec
Where in memory are my variables stored in C?

By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static …

c memory memory-management types
Try catch statements in C

I was thinking today about the try/catch blocks existent in another languages. Googled for a while this but with …

c