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 the features of c language?
What are identifiers c?
What is a nested formula?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What is calloc in c?
What do you mean by scope of a variable in c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
How are 16- and 32-bit numbers stored?
to find the closest pair
Differentiate call by value and call by reference?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
In which layer of the network datastructure format change is done
Is printf a keyword?
What is the function of volatile in c language?
Write a code to remove duplicates in a string.