Also forgot to declaure value as int :P
int main()
{
int i , value , sum = 1 ;
printf("Enter value");
Type: Posts; User: Bella_Rosa
Also forgot to declaure value as int :P
int main()
{
int i , value , sum = 1 ;
printf("Enter value");
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...
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) ...
the inner loop should look somethin like this
[/code]
int i , value , sum ;
for ( i = value ; i > 0 ; i--)
sum = sum * i ;
[/code]
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 ???
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...
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...
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...