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
How do you convert strings to numbers in C?
What is the mean of function?
How are variables declared in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Write a Program to find whether the given number or string is palindrome.
What is a lookup table in c?
shorting algorithmS
Explain enumerated types in c language?
Where local variables are stored in c?
What is FIFO?
What is the use of a conditional inclusion statement in C?
What are disadvantages of C language.
What is the deal on sprintf_s return value?
What is the role of && operator in a program code?
Explain how can you determine the size of an allocated portion of memory?