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 program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
What is the process to create increment and decrement stamen in c?
In scanf h is used for
Why can't we initialise member variable of a strucutre
What are pointers in C?
What do the functions atoi(), itoa() and gcvt() do?
Write a program that his output 1 12 123
we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?
int *a[5] refers to
Does sprintf put null character?
How #define works?