1.find the second maximum in an array?
2.how do you create hash table in c?
3.what is hash collision
Answer Posted / dishant srivastava
void max_two(unsigned char A[], unsigned char Size,
unsigned char *first, unsigned char *second)
{
unsigned char i;
*first = A[0];
for(i = 1; i < Size; i++)
{
if(*first <= A[i])
{
*second = *first;
*first = A[i];
}
}
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between array_name and &array_name?
What is the difference between functions abs() and fabs()?
How do I send escape sequences to control a terminal or other device?
Explain what is meant by 'bit masking'?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What do the functions atoi(), itoa() and gcvt() do?
How can I recover the file name given an open stream or file descriptor?
Define Array of pointers.
How to establish connection with oracle database software from c language?
Is a house a mass structure?
Why n++ execute faster than n+1 ?
What is meant by inheritance?
Can you please explain the difference between strcpy() and memcpy() function?
What is the purpose of scanf() and printf() functions?