code for bubble sort?
Answer / 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 |
size maximum allocated by calloc()
Explain what is the benefit of using #define to declare a constant?
What are pointers really good for, anyway?
How can I sort more data than will fit in memory?
Where is c used?
How to set a variable in the environment list?
Not all reserved words are written in lowercase. TRUE or FALSE?
write a program to generate 1st n fibonacci prime number
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.
How can you read a directory in a C program?
What are the types of arrays in c?
What is non linear data structure in c?