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 |
Can you add pointers together? Why would you?
what are the interview question's in the language c
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Write a program to show the change in position of a cursor using c
main() {int a=200*200/100; printf("%d",a); }
What is bss in c?
Is linux written in c?
value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
formula to convert 2500mmh2o into m3/hr
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,