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 g value paradox?
What is difference between structure and union with example?
What is the purpose of 'register' keyword in c language?
Why string is used in c?
What is #include conio h?
which is an algorithm for sorting in a growing Lexicographic order
What is a protocol in c?
What are external variables in c?
int i=10; printf("%d %d %d", i, i=20, i);
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Explain how can I make sure that my program is the only one accessing a file?
Is c dynamically typed?
Explain how can a program be made to print the line number where an error occurs?
What is wild pointer in c?
Can we use any name in place of argv and argc as command line arguments?