Top "C" questions

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

Is char signed or unsigned by default?

In the book "Complete Reference of C" it is mentioned that char is by default unsigned. But I am trying …

c types char signed
Multiple child process

can someone help me about how to create multiple child processes which have the same parent in order to do "…

c fork child-process
How to recursively list directories in C on Linux?

I need to recursively list all directories and files in C programming. I have looked into FTW but that is …

c linux recursion
Check if User Inputs a Letter or Number in C

Is there an easy way to call a C script to see if the user inputs a letter from the …

c validation alphanumeric
%p Format specifier in c

How are the specifiers %p and %Fp working in the following code? void main() { int i=85; printf("%p %Fp",i,…

c format-specifiers
GDB corrupted stack frame - How to debug?

I have the following stack trace. Is it possible to make out anything useful from this for debugging? Program received …

c recursion gdb
How to get ip address from sock structure in c?

I'm writing simple server/client and trying to get client IP address and save it on server side to decide …

c sockets ip-address
How do I see a C/C++ source file after preprocessing in Visual Studio?

Let's say I have a source file with many preprocessor directives. Is it possible to see how it looks after …

c++ c debugging visual-studio-2005 c-preprocessor
How do I clear the whole contents of a file in C?

I have a file with some of user1's data. I want to use the same file for user2 by …

c file file-io file-handling
difference between #if defined(WIN32) and #ifdef(WIN32)

I am compiling my program that will running on linux gcc 4.4.1 C99. I was just putting my #defines in to …

c