[C language]Checking whether an integer is a prime number Show[C language]Checking whether an integer is a prime number
Definition of a prime number
Algorithm 1: dividers between 2 and N-1 will be tested
Algorithm 2: Even dividers will not be tested, research is limited to odd dividers
Algorithm 3:...
[C language]Handling 64-bit integers Show[C language]Handling 64-bit integers
Unsigned 64-bit integer
Example:
Signed 64-bit integer
Example:
Basically in C language, an unsigned number over 32 bit can not exceed the value of 4 294 967 295.
It may happen that you are...
A dialect for C language ShowA dialect for C language
Cyclone language
Conclusion
You want to do some C programming but the fact that C embedded automatic Garbage Collector will make debugging harder and is not quite effective when making system programming, such...
[C Language] finding the square root of a number Show[C Language] finding the square root of a number
Intro
Notes
Intro
A simple C program allowing you to find the square root of a number.
#include
#include
int main(void)
{
double x = 4.0, result;...
Generating random numbers with rand() ShowGenerating random numbers with rand()
You may have noticed when using the rand() found in the standard library of C language, you often get unsatisfied by the results, they look the same.
For example, when trying 5 random numbers in...
Representation of real numbers and integers ShowRepresenting a number in a computer
Representing (or encoding) a number means to express it in binary form. Representing numbers in a computer is necessary in order for it to be able to store and manipulate them. However, the problem is that a...
Introduction to power line communications (PLC) ShowIntroduction to PLC
"Power Line Communications" basically means any technology that enables data
transfer at narrow or broad band speeds through power lines by using advanced modulation technology.
Depending on the country, the institution and the...