What is cmr?
1152
Tell something about Anti Corruption Movement?
1089
What is use of odata protocol?
817
What are relation objects in dataset?
985
What is the use of lambda in c++?
1037
How do you delete a corrupted file?
968
What thread means?
898
hello there, can anyone tell me what type of question does lg soft company ask in written test especially for a quant part? Thanku
1845
How to code the db2 queries using rexx?
994
How do you write methodology?
990
how load of a turbo generator can be increased
1970
What is the advantage of open source?
871
#include
#include
#include
#include
void select(char *items, int count);
int main(void)
{
char s[255];
printf("Enter a string:");
gets(s);
select(s, strlen(s));
printf("The sorted string is: %s.\n", s);
getch();
return 0;
}
void select(char *items, int count)
{
register int a, b, c;
int exchange;
char t;
for(a = 0; a < count-1; ++a)
{
exchange = 0;
c = a;
t = items[ a ];
for(b = a + 1; b < count; ++b)
{
if(items[ b ] < t)
{
c = b;
t = items[ b ];
exchange = 1;
}
}
if(exchange)
{
items[ c ] = items[ a ];
items[ a ] = t;
}
}
}
design an algorithm for Selection Sort
2554
How can you set default node version using nvm?
572
Compare javascript remoting and ?
476