Question: The provided code has a few syntax errors. Here is the corrected code: ` ` ` c #include int main ( ) { int a

The provided code has a few syntax errors. Here is the corrected code:
```c
#include
int main(){
int a[]={8,6,2,4,10};
int temp;
for (int i =0; i <5; i++)
printf("%d\t", a[i]);
for (int i =0; i <4; i++){
for (int j = i +1; j <5; j++){
if (a[i]< a[j]){
temp = a[i];
a[i]= a[j];
a[j]= temp;
}
}
}
printf("
");
for (int i =0; i <5; i++)
printf("%d\t", a[i]);
return 0;
}
```
With this corrected code, the error is in line A)11. The correct line should be:
```c
temp = a[i];
```
This fixes the assignment syntax.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!