Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Selection sort - C program:
Write a program to define a selection sort.
void main()
{
clrscr();
int a[100],ch,n;
cout<<"enter the limit for the array : ";
cin>>n;
for (int i=0;i { cout<<"enter element "< cin>>a[i]; } clrscr(); cout<<"1. selection sorting"< ssort(a,n); } } void ssort(int a[100],int n) { clrscr(); int i,min,po,j,t; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
cout<<"enter element "<
cin>>a[i];
}
cout<<"1. selection sorting"< ssort(a,n); } } void ssort(int a[100],int n) { clrscr(); int i,min,po,j,t; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
ssort(a,n);
void ssort(int a[100],int n)
int i,min,po,j,t;
for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
min=a[i];
po=i;
for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
min=a[j];
po=j;
t=a[po];
a[po]=a[i];
a[i]=t;
cout<<" sorted arrays by selection "<<"\n\n";
for(i=0;i cout< getch(); }
cout< getch(); }
getch();
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b
Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed
Explain about Evaluation of Expression in c language? An Expressions are evaluated using an assignment statement of the form: variable = expression; The Variable is any v
how to set text in computer graphcs
#include #include #include void* memorycopy (void *des, const void *src, size_t count) { size_t n = (count + 7) / 8; char* destination = (char *) des; char* source =
Write a function that takes in a number n and divides the screen into n vertical bars, alternating black and white. (What should you do if someone puts in n=0 or n=-99?)
A: Here are a few of the many instance of operator overloading: myString + yourString may concatenate two std::string objects myDate++ may increment a Date object a * b may m
Help for tomorrow...?
A palindrome is a string that reads the same from the both the ends. Given a string S convert it to a palindrome by doing character replacement. Your takes is to convert S to palin
Question 1 Write a program in ‘C' to check whether a given number is even or odd Question 2 Explain while and do... while loop with an example Question 3 Write a program
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd