Computer Science, asked by samruddhi1133, 6 months ago

musi
1. What is the output of following code?
for(i=0;i<=n-1;i++)
{
for(i=0;j<=n-1-1;j++)
{
if(a[j]>a[j+1])
{
temp=a[j];
a[j]=a[i+1];
a[j+1]=temp;
}
}
}
unified CO.​

Answers

Answered by afi968119
1

Answer:

0;i<=n-1;i++)

{

for(i=0;j<=n-1-1;j++)

{

if(a[j]>a[j+1])

{

temp=a[j];

a[j]=a[i+1];

a[j+1]=temp;

Similar questions