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 purpose of macro in C language?
What is ambagious result in C? explain with an example.
Are the expressions * ptr ++ and ++ * ptr same?
Describe static function with its usage?
What is a rvalue?
Explain the difference between null pointer and void pointer.
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Can the size of an array be declared at runtime?
What is difference between stdio h and conio h?
Why is this loop always executing once?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are pointers in C? Give an example where to illustrate their significance.
Do you have any idea about the use of "auto" keyword?
How can a process change an environment variable in its caller?
What does %2f mean in c?