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

program to find a smallest number in an array

Answer Posted / subash

&a[i]);
i=0;
for(int j=0;j<n-1;j++)
{
if(a[j+1]<a[j])
{
temp=a[j+1];
a[j+1]=a[j];
a[j]=temp;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you generate random numbers in c?

1061


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1034


What is the 'named constructor idiom'?

1055


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1048


How to write a multi-statement macro?

1012


What does volatile do?

961


What is a static function in c?

1135


What is mean by data types in c?

992


What does the && operator do in a program code?

1182


What is difference between stdio h and conio h?

1339


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1068


What does the c preprocessor do?

1077


What is pre-emptive data structure and explain it with example?

3686


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

2059


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2658