Top "C" questions

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

function declaration isn't a prototype

I have a library I created, mylib.c: #include <mylib.h> int testlib() { printf("Hello world\n"); return (0); } …

c gcc
Using floats with sprintf() in embedded C

Guys, I want to know if float variables can be used in sprintf() function. Like, if we write: sprintf(str,"…

c embedded floating-point printf
How to get the current time in milliseconds in C Programming

Possible Duplicate: How to measure time in milliseconds using ANSI C? How can I get the Windows system time with …

c time.h
What's the best way to do a backwards loop in C/C#/C++?

I need to move backwards through an array, so I have code like this: for (int i = myArray.Length - 1; …

c# c++ c
Single quotes vs. double quotes in C or C++

When should I use single quotes and double quotes in C or C++ programming?

c++ c syntax char string-literals
How do malloc() and free() work?

I want to know how malloc and free work. int main() { unsigned char *p = (unsigned char*)malloc(4*sizeof(unsigned char)); …

c++ c memory-management malloc free
What does OpenCV's cvWaitKey( ) function do?

What happens during the execution of cvWaitKey()? What are some typical use cases? I saw it in OpenCV reference but …

c++ c opencv
How to use execvp()

The user will read a line and i will retain the first word as a command for execvp. Lets say …

c shell fork execvp
"FATAL: Module not found error" using modprobe

I have a problem with modprobe command... I compiled the hello world module and loaded it with insmod, it works …

c linux linux-kernel kernel linux-device-driver
The "backspace" escape character '\b': unexpected behavior?

So I'm finally reading through K&R, and I learned something within the first few pages, that there is …

c language-agnostic printf special-characters backspace