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
Tell us the use of fflush() function in c language?
What does sizeof return c?
What is void main ()?
What is difference between constant pointer and constant variable?
What are valid signatures for the Main function?
What is pragma in c?
What does sizeof function do?
what is the syallabus of computer science students in group- 1?
Explain zero based addressing.
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
write a programming in c to find the sum of all elements in an array through function.
What is ## preprocessor operator in c?
What is the advantage of an array over individual variables?
write a program to create a sparse matrix using dynamic memory allocation.
What is extern keyword in c?