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 |
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Explain the use of 'auto' keyword in c programming?
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
How do you write a program which produces its own source code as its output?
Write a function in c to find the area of a triangle whose length of three sides is given.
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
which of 'arrays' or 'pointers' are faster?
Is reference used in C?
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression
Define Array of pointers.
What does typeof return in c?
List some basic data types in c?