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
What is extern c used for?
can any one tel me wt is the question pattern for NIC exam
What is the total generic pointer type?
What are dangling pointers? How are dangling pointers different from memory leaks?
Where in memory are my variables stored?
What is pivot in c?
Why use int main instead of void main?
What is int main () in c?
Differentiate between functions getch() and getche().
What is the difference between mpi and openmp?
Explain what will the preprocessor do for a program?
What is an array in c?
What is difference between structure and union in c?
Explain what happens if you free a pointer twice?
What will the preprocessor do for a program?