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 are operators in c?

961


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1442


How to implement a packet in C

2831


Which are low level languages?

1046


Differentiate between calloc and malloc.

1223


List out few of the applications that make use of Multilinked Structures?

2108


Where are the auto variables stored?

1090


Why we use break in c?

934


Explain what header files do I need in order to define the standard library functions I use?

1114


Explain low-order bytes.

975


Do you have any idea about the use of "auto" keyword?

1049


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3636


What does. int *x[](); means ?

1013


Explain what is the difference between a free-standing and a hosted environment?

1125


Explain the use of #pragma exit?

1112