[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...
[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...
Download NetBeans IDE ShowNetBeans IDE 6.1 is an excellent IDE of C/C ++ development written completely in Java.
The syntactic tint, the "Code Completion" and many other options belong to NetBeans.
One of the main asset of NetBeans is that it is based on a module concept :...
Download Prime Number Spiral ShowDescription
The application is designed by Hermetic Systems. Prime Number Spiral is a tool that is able to display prime numbers in a rectangular grid. Simple and easy to use, the application has been awarded from various popular places. Offering an...
Programming languages ShowProgramming language
A "programming language" is a language designed to describe a set of consecutive actions to be
executed by a computer. A programming language is therefore a practical way for us (humans) to give instructions to a...
Program structure ShowHow does a computer program work?
A program's behaviour depends on the type of language used to write the program.
Nonetheless, almost all programming languages are based upon the same principle:
The program consists of a set of commands that the...
Linux - The shell ShowIntroduction to the shell
The command interpreter is the interface between the user and the operating system, hence the name "shell".
The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...