Top "C" questions

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

Why is volatile needed in C?

Why is volatile needed in C? What is it used for? What will it do?

c declaration volatile
What is time_t ultimately a typedef to?

I searched my Linux box and saw this typedef: typedef __time_t time_t; But I could not find the __…

c linux types
Use of min and max functions in C++

From C++, are min and max preferable over fmin and fmax? For comparing two integers, do they provide basically the …

c++ c max min
What is the format specifier for unsigned short int?

I have the following program #include <stdio.h> int main(void) { unsigned short int length = 10; printf("Enter length : "); …

c scanf
How to print binary number via printf

Possible Duplicate: Is there a printf converter to print in binary format? Here is my program #include<stdio.h&…

c binary printf
How to send a simple string between two programs using pipes?

I tried searching on the net, but there are hardly any resources. A small example would suffice. EDIT I mean, …

c unix pipe
Where is the itoa function in Linux?

itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), …

c linux
maximum value of int

Is there any code to find the maximum value of integer (accordingly to the compiler) in C/C++ like Integer.…

c++ c stl limits numeric-limits
How to declare a structure in a header that is to be used by multiple files in c?

If I have a source.c file with a struct: struct a { int i; struct b { int j; } }; How can …

c file header structure
Printing all global variables/local variables?

How can I print all global variables/local variables? Is that possible in gdb?

c variables gdb global-variables