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 is void c?
What is the general form of a C program?
write a program to copy the string using switch case?
How can you convert integers to binary or hexadecimal?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
How can you access memory located at a certain address?
What is function prototype in c with example?
what is the difference between class and unio?
What are the different types of C instructions?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Which is more efficient, a switch statement or an if else chain?
How can you find the day of the week given the date?
Explain built-in function?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is p in text message?