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 g value paradox?

1247


What is difference between structure and union with example?

1120


What is the purpose of 'register' keyword in c language?

1069


Why string is used in c?

1047


What is #include conio h?

1053


which is an algorithm for sorting in a growing Lexicographic order

1861


What is a protocol in c?

1052


What are external variables in c?

1162


int i=10; printf("%d %d %d", i, i=20, i);

1693


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

2530


Explain how can I make sure that my program is the only one accessing a file?

1269


Is c dynamically typed?

1199


Explain how can a program be made to print the line number where an error occurs?

1282


What is wild pointer in c?

1123


Can we use any name in place of argv and argc as command line arguments?

1125