[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]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] 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;...
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...
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...
Compiling a program in C with Dev C++ on Vista ShowCompiling a program in C with Dev C++ on Vista
Compiling a C source code under Vista with Dev C++, can be a quite difficult procedure.
Quick solution: the g++ compiler
To be used with Dev-PSV:
Go to Tools/compiler options and...
Binary encoding ShowIntroduction to binary
In the late 1930s, Claude Shannon showed that by using switches which were closed for "true" and open for "false," it was possible to carry out logical operations by assigning the number 1 to "true" and 0 for "false." This...
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...