Top "C" questions

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

What is the difference between #include <filename> and #include "filename"?

In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an …

c++ c include header-files c-preprocessor
C char array initialization

I'm not sure what will be in the char array after initialization in the following ways. 1.char buf[10] = ""; 2. char buf[10] = " "; 3. …

c arrays char initialization buffer
printf() formatting for hex

This is more of a curious query than an important question, but why when printing hex as an 8 digit number …

c printf hex
What does "dereferencing" a pointer mean?

Please include an example with the explanation.

c++ c pointers dereference
What is an unsigned char?

In C/C++, what an unsigned char is used for? How is it different from a regular char?

c++ c char
Is the size of C "int" 2 bytes or 4 bytes?

Does an Integer variable in C occupy 2 bytes or 4 bytes? What are the factors that it depends on? Most of …

c int byte
Write to .txt file?

How can I write a little piece of text into a .txt file? I've been Googling for over 3-4 hours, …

c linux
What is a "static" function in C?

The question was about plain c functions, not c++ static methods, as clarified in comments. I understand what a static …

c function static terminology
How do you pass a function as a parameter in C?

I want to create a function that performs a function passed by parameter on a set of data. How do …

c function pointers syntax parameters
Get a substring of a char*

For example, I have this char *buff = "this is a test string"; and want to get "test". How can I …

c char substring