Top "C" questions

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

How can I use an array of function pointers?

How should I use array of function pointers in C? How can I initialize them?

c initialization function-pointers
How to display hexadecimal numbers in C?

I have a list of numbers as below: 0, 16, 32, 48 ... I need to output those numbers in hexadecimal as: 0000,0010,0020,0030,0040 ... I have tried …

c format integer printf hex
What is the difference between exit(0) and exit(1) in C?

Can anyone tell me? What is the difference between exit(0) and exit(1) in C language?

c
Why aren't programs written in Assembly more often?

It seems to be a mainstream opinion that assembly programming takes longer and is more difficult to program in than …

c programming-languages assembly
How to use EOF to run through a text file in C?

I have a text file that has strings on each line. I want to increment a number for each line …

c file eof
Read and write to binary files in C?

Does anyone have an example of code that can write to a binary file. And also code that can read …

c linux file-io binary
Why are hexadecimal numbers prefixed with 0x?

Why are hexadecimal numbers prefixed as 0x? I understand the usage of the prefix but I don't understand the significance …

c syntax hex
How to get the current time in milliseconds from C in Linux?

How do I get the current time on Linux in milliseconds?

c linux posix
What does the ??!??! operator do in C?

I saw a line of C that looked like this: !ErrorHasOccured() ??!??! HandleError(); It compiled correctly and seems to run ok. …

c operators trigraphs
Error "initializer element is not constant" when trying to initialize variable with const

I get an error on line 6 (initialize my_foo to foo_init) of the following program and I'm not sure …

c initialization