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
Explain how do you declare an array that will hold more than 64kb of data?
What are the different types of data structures in c?
I came across some code that puts a (void) cast before each call to printf. Why?
code for quick sort?
Why can arithmetic operations not be performed on void pointers?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Why do we use int main instead of void main in c?
What is a null pointer in c?
What is the advantage of an array over individual variables?
What is substring in c?
Compare and contrast compilers from interpreters.
What is typedef?
What is #include cctype?
What's the right way to use errno?
Why is c known as a mother language?