Top "C" questions

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

How to create a high resolution timer in Linux to measure program performance?

I'm trying to compare GPU to CPU performance. For the NVIDIA GPU I've been using the cudaEvent_t types to …

c linux timer precision high-resolution
Difference between scanf and scanf_s

What is the difference between scanf and scanf_s? In the university I have been taught and I am using …

c visual-studio scanf tr24731
Eclipse CDT "Symbol NULL could not be resolved"

I just installed Eclipse CDT with MinGW. All the environment variables are set, includes, etc. Tried running a hello world …

c eclipse windows mingw eclipse-cdt
How to configure CDB in Qt Creator?

The question here is the same as mine but the solution there is not working for me. I am using …

c++ c qt qt-creator
read bitmap file into structure

I would like to read a bitmap file into a struct and manuplate it like make a mirror effect etc. …

c bitmap structure bitmapimage
Printing a void* variable in C

Hi all I want to do a debug with printf. But I don't know how to print the "out" variable. …

c printf void-pointers uint
Nested function in C

Can we have a nested function in C? What is the use of nested functions? If they exist in C …

c function nested
How to extract specific bits from a number in C?

I need to extract specific part (no of bits) of a short data type in C. For Example I have …

c bit-manipulation bit bit-shift
Position of least significant bit that is set

I am looking for an efficient way to determine the position of the least significant bit that is set in …

c++ c optimization bit-manipulation
Hidden features of C

I know there is a standard behind all C compiler implementations, so there should be no hidden features. Despite that, …

c hidden-features