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
Write a code to generate divisors of an integer?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is a floating point in c?
What is the difference between a string and an array?
how should functions be apportioned among source files?
What is putchar() function?
When was c language developed?
What is an expression?
Is r written in c?
Is using exit() the same as using return?
Implement bit Array in C.
p*=(++q)++*--p when p=q=1 while(q<=6)
How does selection sort work in c?
Why c language is called c?
What is #include stdio h and #include conio h?