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
Can a pointer be volatile in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
How can you increase the size of a dynamically allocated array?
Can we change the value of #define in c?
What is the difference between the = symbol and == symbol?
Why do we use stdio h and conio h?
Which of these functions is safer to use : fgets(), gets()? Why?
Is sizeof a keyword in c?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is an array in c?
What are lookup tables in c?
How do I get an accurate error status return from system on ms-dos?
What is data structure in c language?
Write a program to print all permutations of a given string.
Do variables need to be initialized?