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

Write down the program to sort the array.

Answer Posted / ashutosh shashi

for(i=0;i<n-1;i++)
{
for(j=0;j<n-i-1;j++)
{
if(arr[j] >a[j+1])
{
temp=arr[j];
arr[j]=arr[j+1];
arr[j+1]=temp;
}
}
}

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is extern c used for?

1024


can any one tel me wt is the question pattern for NIC exam

1932


What is the total generic pointer type?

1126


What are dangling pointers? How are dangling pointers different from memory leaks?

1259


Where in memory are my variables stored?

1140


What is pivot in c?

994


Why use int main instead of void main?

1082


What is int main () in c?

1053


Differentiate between functions getch() and getche().

1012


What is the difference between mpi and openmp?

1235


Explain what will the preprocessor do for a program?

1032


What is an array in c?

1018


What is difference between structure and union in c?

946


Explain what happens if you free a pointer twice?

1041


What will the preprocessor do for a program?

1036