What is Hashing and how is it done? Pictorial form?
Answers were Sorted based on User's Feedback
Answer / vivin
A hashing function is a key-to-address transformation, which acts upon a given key to compute the relative position of the key in an array.
A simple hash function
HASH(KEY value)=KEYvalue MOD TABLESIZE
(ex) HASH(92)=92 MOD 10
=2
Here 10 is table size associated with records
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / sanjeevkumar.v
hashing table is used on C-language .first to give the
values and these are divide into 3. the values are
individually divided in the 3. the REMAINDER will be
considered at the TABLE . the columns are in
TABLE--0
TABLE--1
TABLE--2
these are in having hashing table........
pictorial diagram is used on the programming languages
and these are used in the .architecture of the function to
be view
| Is This Answer Correct ? | 1 Yes | 4 No |
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that
What is an object?
How long to learn object oriented programming?
what is the difference between class to class type conversion and copy constructor ?
What is coupling in oop?
how much classes are used in c++
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass
What is polymorphism ? Explain with examples
what are the disadvantages of C++?
25 Answers ATS, Infosys, UNI, Wipro,
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }