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


Please Help Members By Posting Answers For Below Questions

Write a code to generate divisors of an integer?

630


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


What is a floating point in c?

594


What is the difference between a string and an array?

701


how should functions be apportioned among source files?

622






What is putchar() function?

628


When was c language developed?

694


What is an expression?

650


Is r written in c?

722


Is using exit() the same as using return?

667


Implement bit Array in C.

669


p*=(++q)++*--p when p=q=1 while(q<=6)

1264


How does selection sort work in c?

614


Why c language is called c?

565


What is #include stdio h and #include conio h?

592