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
Explain how do you use a pointer to a function?
What is formal argument?
Explain how can I read and write comma-delimited text?
Why calloc is better than malloc?
What are enumerated types?
What is a const pointer?
what is the structure pointer?
What is the advantage of a random access file?
Why n++ execute faster than n+1 ?
What are the three constants used in c?
What does double pointer mean in c?
Why is c so powerful?
Explain what is page thrashing?
What are header files and explain what are its uses in c programming?
What is #define?