Top "C" questions

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

Where is the <conio.h> header file on Linux? Why can't I find <conio.h>?

Possible Duplicate: How to implement getch() function of C in Linux? What is the equivalent Linux version of the conio.…

c linux gcc header-files
Scanf/Printf double variable C

Let's say I have this following bit of code in C: double var; scanf("%lf", &var); printf("%lf", var); …

c double printf stdout stdin
C/C++ check if one bit is set in, i.e. int variable

int temp = 0x5E; // in binary 0b1011110. Is there such a way to check if bit 3 in temp is 1 or 0 …

c++ c bit-manipulation
How do I return multiple values from a function in C?

If I have a function that produces a result int and a result string, how do I return them both …

c return-value
Understanding typedefs for function pointers in C

I have always been a bit stumped when I read other peoples' code which had typedefs for pointers to functions …

c function-pointers typedef
How to read string from keyboard using C?

I want to read a string entered by the user. I don't know the length of the string. As there …

c string scanf
How to read a line from the console in C?

What is the simplest way to read a full line in a C console program The text entered might have …

c io console stdin
Output single character in C

When printing a single character in a C program, must I use "%1s" in the format string? Can I use …

c character string-formatting
True and False for && logic and || Logic table

Table true/false for C Language I have heard of a table true false for C Language for and &&…

c truthtable
What function is to replace a substring from a string in C?

Given a (char *) string, I want to find all occurrences of a substring and replace them with an alternate string. …

c string replace