Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the general form of #line preprocessor?

965


Without Computer networks, Computers will be half the use. Comment.

2272


Explain how do you list files in a directory?

1033


Explain the difference between malloc() and calloc() function?

1005


diff between exptected result and requirement?

2017


What are local static variables? How can you use them?

1101


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2422


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

1047


Differentiate between #include<...> and #include '...'

1021


What is ## preprocessor operator in c?

1048


Write a Program to find whether the given number or string is palindrome.

1248


‎How to define structures? · ‎

1043


Describe the difference between = and == symbols in c programming?

1321


What are the 5 elements of structure?

1052


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.?

1038