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 general form of #line preprocessor?
Without Computer networks, Computers will be half the use. Comment.
Explain how do you list files in a directory?
Explain the difference between malloc() and calloc() function?
diff between exptected result and requirement?
What are local static variables? How can you use them?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Differentiate between #include<...> and #include '...'
What is ## preprocessor operator in c?
Write a Program to find whether the given number or string is palindrome.
How to define structures? ·
Describe the difference between = and == symbols in c programming?
What are the 5 elements of structure?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?