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 are operators in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
How to implement a packet in C
Which are low level languages?
Differentiate between calloc and malloc.
List out few of the applications that make use of Multilinked Structures?
Where are the auto variables stored?
Why we use break in c?
Explain what header files do I need in order to define the standard library functions I use?
Explain low-order bytes.
Do you have any idea about the use of "auto" keyword?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What does. int *x[](); means ?
Explain what is the difference between a free-standing and a hosted environment?
Explain the use of #pragma exit?