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
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is a constant?
what are the 10 different models of writing an addition program in C language?
Explain what does the format %10.2 mean when included in a printf statement?
What is union and structure?
What is the role of this pointer?
Why is python slower than c?
How can I determine whether a machines byte order is big-endian or little-endian?
Explain the process of converting a Tree into a Binary Tree.
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is hungarian notation? Is it worthwhile?
Differentiate abs() function from fabs() function.
Why enum is used in c?
What is %d called in c?
What is a null pointer in c?