Answer Posted / ansar husain
void main()
{
int A[50];
int n,j,t ;
printf("enter the size of array:=>");
scanf("%d",&n);
printf("enter the %d value in array:=>%d",n);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(A[i]>A[j])
{
i=a[i];
A[i]=a[j];
A[j]=t;
}
}
}
printf("after the shorting:=>\n");
for(i=0;i<n;i++)
{
printf("%d",A[i]);
}
getch();
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What are linker error?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What is a pointer and how it is initialized?
What functions are used in dynamic memory allocation in c?
What is the purpose of main( ) in c language?
Why is c platform dependent?
What are external variables in c?
What is difference between stdio h and conio h?
What is a class c rental property?
What are keywords in c with examples?
Explain what does the function toupper() do?
Why is sprintf unsafe?
how to execute a program using if else condition and the output should enter number and the number is odd only...
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is #line in c?