Hashing is a process for message digest. Hash value is the collection of text.
Producing hash values for accessing data or for security. A hash value (or simply hash), also called a message digest, is a number generated from a string of text. The hash is substantially smaller than the text itself, and is generated by a formula in such a way that it is extremely unlikely that some
Hashing is also a common method of accessing data records. Consider, for example, a list of names:
John Smith
Sarah Jones
Roger Adams
To create an index, called a hash table, for these records, you would apply a formula to each name to produce a unique numeric value. So you might get something like:
1345873 John smith
3097905 Sarah Jones
4060964 Roger Adams
Then to search for the record containing Sarah Jones, you just need to reapply the formula, which directly yields the index key to the record. This is much more efficient than searching through all the records till the matching record is found.
Article written by admin
Basically it has three core feature.
1. It retains the value between function calls.
2.By default function is extern..so it will be visible from other files if the function declaration is as static..it is invisible for the outer files
3. By default we can use the global variables from outside files If it is static global..that variable is limited to with in the file.
#include <stdio.h>
int variable = 10;
main(){
int i = 0;
void useStatic();
useStatic();
printf("after 1st call \n");
useStatic();
printf("after 2nd call \n");
useStatic();
printf("after IIIrd call \n");
}
void useStatic()
{
static int j = 0;
int k = 10;
printf("value of j %d k %d",j,k);
j=j+10;
} |
value of j 0 k 10 After 1st call
value of j 10 k 10 After IInd call
value of j 20 k 10 After IIUrd call
Article written by admin
The this pointer is a pointer accessible only within the member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer.
Article written by urooj
An accessor is a class operation that does not modify the state of an object.
The accessor functions need to be declared as const operations……
Article written by urooj
A container class is a class that is used to hold objects in memory or
external storage. A container class acts as a generic holder. A
container class has a predefined behavior and a well-known interface. A
container class is a supporting class whose purpose is to hide the
topology used for maintaining the list of objects in memory. When a
container class contains a group of mixed objects, the container is
called a heterogeneous container; when the container is holding a group
of objects that are all the same, the container is called a homogeneous
container.
Article written by urooj