#include <stdio.h>
struct student {
? int StudentID;
? char *Student_Name;
};
int main( void )
{
int hash;
int hash_generator=4;
struct student You;
You.StudentID =
You.Student_Name =
hash = You.StudentID % hash_generator;
printf( " \n Hash obtained from your student ID number is ?%d \n ", hash);
printf( " \n After calculating the hash, the RESULT is %c \n ", (You.Student_Name[hash]));
return 0; /* indicates successful termination */
}
Burda hash ne işe yarıyor
Burda hash ne işe yarıyor
Burda hash ne işe yarıyor
#include <stdio.h>
struct student {
int StudentID;
char *Student_Name;
};
int main( void )
{
int hash;
int hash_generator=4;
struct student You;
You.StudentID =
You.Student_Name =
hash = You.StudentID % hash_generator;
printf( " \n Hash obtained from your student ID number is ?%d \n ", hash);
printf( " \n After calculating the hash, the RESULT is %c \n ", (You.Student_Name[hash]));
return 0; /* indicates successful termination */
}