This article will introduce the differences between float, double and long double in C/C++. There are three parts in this artcile, including definition of float,…
The article will give the code about four ways to loop over a Vector. In the meantime, I also calculate the time for looping over…
Background I did the following operations, but got an unexpected result. Use fopen function to open a file. Use fprintf function to write two integers…
Question: Write a program to test the five functions mentioned in APUE(TELL_WAIT, TELL_CHILD, TELL_PARENT, WAIT_PARENT, WAIT_CHILD). This process to create a file, write an integer…
Background: One day, I wanted to print an unsigned char itself in the printf function in my code, but I didn’t know what is the…
Background My program has been writing to the SQLite database, which is fine. But when another program (another process) reads, after a period of time,…
Static Storage: static, the same with global variables. They will be Initialized to 0 because they are in static area. There are three kinds of staitc…
If you know the “extern” keyword, but you are not clear about where and why do we need it. You are in right place. “extern”…
Today I found I didn’t know how to use void * variable, so I think I need to write it down. Show you the code,…
Several days ago, I saw an unusual case of “typedef”, so I am going to share it with you guys. There you go. Let me…