Search:

Type: Posts; User: Bella_Rosa

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    21,516

    oh yeah

    Also forgot to declaure value as int :P




    int main()
    {
    int i , value , sum = 1 ;

    printf("Enter value");
  2. Replies
    20
    Views
    21,516

    fine

    fine I guess I should have given more explaination 2 my code :P
    ok I assumed that the user would want to tell the program which numbers it wants it to find the factorial to :P



    int i , sum...
  3. Replies
    3
    Views
    1,877

    Hi

    it's been a while since I've reversed strings in the file the following code should work



    // CH reads char from the file
    // i is the offset of the file u r reading from ( end of the file) ...
  4. Replies
    20
    Views
    21,516

    LoooooPs

    the inner loop should look somethin like this
    [/code]
    int i , value , sum ;


    for ( i = value ; i > 0 ; i--)
    sum = sum * i ;

    [/code]
  5. Replies
    5
    Views
    4,913

    Thanx 4 all the input ppl

    I was just wondering if I use a midsquare function and I use only 3 bits woldn't there be a problem if I have the table size more than 8 caus 2^3 = 8 which should be the table size ???
  6. Replies
    14
    Views
    5,239

    pointers

    ok when saying int x = &a is like saying let the integer point to the pointer of an integer so it's not of the same type but when you say int * x . you are saying that x is a pointer to an integer...
  7. Replies
    5
    Views
    4,913

    Thanx

    Thanx For the Help :D :D . I'm starting to get a better idea of what I should do . ( the point of this program is to try diffrent load factors to see the average number of collisions & the average...
  8. Replies
    5
    Views
    4,913

    Hashing Functions

    Ok I know how to write the actuall hash function what I'm having trouble with is the techniqe to resolve the collision there is a way called Dynamic Hashing I'm having trouble on how to write it. I...
Results 1 to 8 of 8