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 |
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
What is unsigned int in c?
WHAT IS FLOAT?
How do you declare a variable that will hold string values?
What is difference between structure and union?
How to define structures? ·
What is strcpy() function?
how to make a scientific calculater ?
What is huge pointer in c?
What is register variable in c language?
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?
Write a program to check whether a number is prime or not using c?