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 the difference between the expression “++a” and “a++”?
Can a variable be both static and volatile in c?
What are structure members?
how to construct a simulator keeping the logical boolean gates in c
Explain the use of bit fieild.
using only #include
What is identifier in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
How do you determine the length of a string value that was stored in a variable?
Explain enumerated types in c language?
What is the difference between text files and binary files?
How many levels of pointers have?
how to count no of words,characters,lines in a paragraph.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is the use of f in c?