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 void main and main in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
How do shell structures work?
What is malloc calloc and realloc in c?
How do you determine the length of a string value that was stored in a variable?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What are different types of pointers?
Is null always defined as 0(zero)?
Explain what is a pragma?
Can 'this' pointer by used in the constructor?
Explain what is the difference between null and nul?
Why c is procedure oriented?
How do I round numbers?
Can we use any name in place of argv and argc as command line arguments?
What was noalias and what ever happened to it?